HomeSort by relevance Sort by last modified time
    Searched refs:HMAC (Results 1 - 25 of 43) sorted by null

1 2

  /external/chromium-trace/catapult/third_party/gsutil/gslib/
cred_types.py 21 HMAC = "HMAC"
  /external/libchrome/crypto/
hmac_openssl.cc 5 #include "crypto/hmac.h"
7 #include <openssl/hmac.h>
24 HMAC::HMAC(HashAlgorithm hash_alg) : hash_alg_(hash_alg) {
29 bool HMAC::Init(const unsigned char* key, size_t key_length) {
30 // Init must not be called more than once on the same HMAC object.
37 HMAC::~HMAC() {
45 bool HMAC::Sign(const base::StringPiece& data,
51 return !!::HMAC(hash_alg_ == SHA1 ? EVP_sha1() : EVP_sha256()
    [all...]
hmac.cc 5 #include "crypto/hmac.h"
17 bool HMAC::Init(SymmetricKey* key) {
26 size_t HMAC::DigestLength() const {
38 bool HMAC::Verify(const base::StringPiece& data,
45 bool HMAC::VerifyTruncated(const base::StringPiece& data,
hmac.h 5 // Utility class for calculating the HMAC for a given message. We currently
25 class CRYPTO_EXPORT HMAC {
33 explicit HMAC(HashAlgorithm hash_alg);
34 ~HMAC();
36 // Returns the length of digest that this HMAC will create.
64 // Calculates the HMAC for the message in |data| using the algorithm supplied
65 // to the constructor and the key supplied to the Init method. The HMAC is
70 // Verifies that the HMAC for the message in |data| equals the HMAC provided
80 // Verifies a truncated HMAC, behaving identical to Verify(), excep
    [all...]
hmac_nss.cc 5 #include "crypto/hmac.h"
24 HMAC::HMAC(HashAlgorithm hash_alg)
40 HMAC::~HMAC() {
43 bool HMAC::Init(const unsigned char *key, size_t key_length) {
47 // Init must not be called more than twice on the same HMAC object.
77 bool HMAC::Sign(const base::StringPiece& data,
hmac_unittest.cc 10 #include "crypto/hmac.h"
46 // Expected HMAC result using kMessage and kClientKey.
80 crypto::HMAC hmac(crypto::HMAC::SHA1);
81 ASSERT_TRUE(hmac.Init(kClientKey, kKeySize));
84 EXPECT_TRUE(hmac.Sign(message_data, calculated_hmac, kSHA1DigestSize));
149 crypto::HMAC hmac(crypto::HMAC::SHA1)
    [all...]
hmac_win.cc 5 #include "crypto/hmac.h"
23 // Implementation of HMAC-SHA-256:
26 // Windows XP SP2, so unfortunately we have to implement HMAC-SHA-256 here.
45 // See FIPS 198: The Keyed-Hash Message Authentication Code (HMAC).
103 // For HMAC-SHA-256 only.
107 HMAC::HMAC(HashAlgorithm hash_alg)
113 bool HMAC::Init(const unsigned char* key, size_t key_length) {
115 // Init must not be called more than once on the same HMAC object.
167 HMAC::~HMAC()
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/test/
test_hmac.py 1 import hmac namespace
10 # Test the HMAC module against test vectors from the RFC.
13 h = hmac.HMAC(key, data)
47 h = hmac.HMAC(key, data, digestmod=hashlib.sha1)
81 h = hmac.HMAC(key, data, digestmod=hashfunc)
176 'd by the HMAC algorithm.',
217 hmac.HMAC('a', 'b', digestmod=MockCrazyHash
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/test/
test_hmac.py 1 import hmac namespace
10 # Test the HMAC module against test vectors from the RFC.
13 h = hmac.HMAC(key, data)
47 h = hmac.HMAC(key, data, digestmod=hashlib.sha1)
81 h = hmac.HMAC(key, data, digestmod=hashfunc)
176 'd by the HMAC algorithm.',
217 hmac.HMAC('a', 'b', digestmod=MockCrazyHash
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/test/
test_hmac.py 1 import hmac namespace
10 # Test the HMAC module against test vectors from the RFC.
13 h = hmac.HMAC(key, data)
47 h = hmac.HMAC(key, data, digestmod=hashlib.sha1)
81 h = hmac.HMAC(key, data, digestmod=hashfunc)
176 'd by the HMAC algorithm.',
217 hmac.HMAC('a', 'b', digestmod=MockCrazyHash
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/test/
test_hmac.py 1 import hmac namespace
10 # Test the HMAC module against test vectors from the RFC.
13 h = hmac.HMAC(key, data)
47 h = hmac.HMAC(key, data, digestmod=hashlib.sha1)
81 h = hmac.HMAC(key, data, digestmod=hashfunc)
176 'd by the HMAC algorithm.',
217 hmac.HMAC('a', 'b', digestmod=MockCrazyHash
    [all...]
  /prebuilts/gdb/darwin-x86/lib/python2.7/
hmac.py 0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
11 # The size of the digests returned by HMAC depends on the underlying
12 # hashing module used. Use digest_size from the instance of HMAC instead.
15 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
16 # that the latter return very quickly. HMAC("") in contrast is quite
20 class HMAC:
21 """RFC 2104 HMAC class. Also complies with RFC 4231.
25 blocksize = 64 # 512-bit HMAC; can be changed in subclasses
    [all...]
  /prebuilts/gdb/linux-x86/lib/python2.7/
hmac.py 0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
11 # The size of the digests returned by HMAC depends on the underlying
12 # hashing module used. Use digest_size from the instance of HMAC instead.
15 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
16 # that the latter return very quickly. HMAC("") in contrast is quite
20 class HMAC:
21 """RFC 2104 HMAC class. Also complies with RFC 4231.
25 blocksize = 64 # 512-bit HMAC; can be changed in subclasses
    [all...]
  /prebuilts/python/darwin-x86/2.7.5/lib/python2.7/
hmac.py 0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
11 # The size of the digests returned by HMAC depends on the underlying
12 # hashing module used. Use digest_size from the instance of HMAC instead.
15 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
16 # that the latter return very quickly. HMAC("") in contrast is quite
20 class HMAC:
21 """RFC 2104 HMAC class. Also complies with RFC 4231.
25 blocksize = 64 # 512-bit HMAC; can be changed in subclasses
    [all...]
  /prebuilts/python/linux-x86/2.7.5/lib/python2.7/
hmac.py 0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
11 # The size of the digests returned by HMAC depends on the underlying
12 # hashing module used. Use digest_size from the instance of HMAC instead.
15 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
16 # that the latter return very quickly. HMAC("") in contrast is quite
20 class HMAC:
21 """RFC 2104 HMAC class. Also complies with RFC 4231.
25 blocksize = 64 # 512-bit HMAC; can be changed in subclasses
    [all...]
  /external/boringssl/src/include/openssl/
hmac.h 69 /* HMAC contains functions for constructing PRFs from Merkle?Damgård hash
70 * functions using HMAC. */
75 /* HMAC calculates the HMAC of |data_len| bytes of |data|, using the given key
79 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key,
87 /* HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed
108 /* HMAC_Update hashes |data_len| bytes from |data| into the current HMAC
113 /* HMAC_Final completes the HMAC operation in |ctx| and writes the result to
123 /* HMAC_size returns the size, in bytes, of the HMAC that will be produced by
  /external/boringssl/src/crypto/hkdf/
hkdf.c 21 #include <openssl/hmac.h>
35 HMAC_CTX hmac; local
37 /* If salt is not given, HashLength zeros are used. However, HMAC does that
47 HMAC_CTX_init(&hmac);
50 if (HMAC(digest, salt, salt_len, secret, secret_len, prk, &prk_len) == NULL) {
55 if (!HMAC_Init_ex(&hmac, prk, prk_len, digest, NULL)) {
63 if (i != 0 && (!HMAC_Init_ex(&hmac, NULL, 0, NULL, NULL) ||
64 !HMAC_Update(&hmac, previous, digest_len))) {
67 if (!HMAC_Update(&hmac, info, info_len) ||
68 !HMAC_Update(&hmac, &ctr, 1) |
    [all...]
  /system/keymaster/
hmac.cpp 17 #include "hmac.h"
22 #include <openssl/hmac.h>
63 if (nullptr == ::HMAC(EVP_sha256(), key_.get(), key_len_, data, data_len, digest, nullptr)) {
  /external/boringssl/src/crypto/hmac/
hmac_test.cc 65 #include <openssl/hmac.h>
90 if (!t->GetAttribute(&digest_str, "HMAC")) {
109 if (nullptr == HMAC(digest, key.data(), key.size(), input.data(),
hmac.c 57 #include <openssl/hmac.h>
65 uint8_t *HMAC(const EVP_MD *evp_md, const void *key, size_t key_len,
  /external/chromium-trace/catapult/third_party/gsutil/gslib/commands/
config.py     [all...]
  /external/tpm2/
Android.mk 91 HMAC.c \
  /external/mdnsresponder/mDNSCore/
mDNS.c 643 if (!(authrr->resrec.RecordType & kDNSRecordTypeUniqueMask) || authrr->WakeUp.HMAC.l[0])
    [all...]
  /system/tpm/trunks/
hmac_authorization_delegate.cc 24 #include <openssl/hmac.h>
99 auth.hmac = Make_TPM2B_DIGEST(digest);
125 if (auth_response.hmac.size != kHashDigestSize) {
126 LOG(ERROR) << "TPM auth hmac was incorrect size.";
161 CHECK_EQ(digest.size(), auth_response.hmac.size);
162 if (!crypto::SecureMemEqual(digest.data(), auth_response.hmac.buffer,
278 HMAC(EVP_sha256(),
  /external/chromium-trace/catapult/third_party/gsutil/third_party/gcs-oauth2-boto-plugin/gcs_oauth2_boto_plugin/
oauth2_client.py 82 # sync. Also note that this library does not use HMAC, but it's preserved from
85 HMAC = "HMAC"

Completed in 375 milliseconds

1 2