Remove workaround for monospace font resources.
[chromium-blink-merge.git] / crypto / hmac.cc
bloba38f5144cdd032738cfca0f0a84088659dc6482c
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "crypto/hmac.h"
7 #include "base/logging.h"
9 namespace crypto {
11 size_t HMAC::DigestLength() const {
12 switch (hash_alg_) {
13 case SHA1:
14 return 20;
15 case SHA256:
16 return 32;
17 default:
18 NOTREACHED();
19 return 0;
23 } // namespace crypto