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

1 2 3 4

  /external/libchrome/crypto/
hmac.cc 5 #include "crypto/hmac.h"
17 #include "third_party/boringssl/src/include/openssl/hmac.h"
21 HMAC::HMAC(HashAlgorithm hash_alg) : hash_alg_(hash_alg), initialized_(false) {
26 HMAC::~HMAC() {
32 size_t HMAC::DigestLength() const {
44 bool HMAC::Init(const unsigned char* key, size_t key_length) {
45 // Init must not be called more than once on the same HMAC object.
52 bool HMAC::Init(SymmetricKey* key)
    [all...]
hmac.h 5 // Utility class for calculating the HMAC for a given message. We currently
26 class CRYPTO_EXPORT HMAC {
34 explicit HMAC(HashAlgorithm hash_alg);
35 ~HMAC();
37 // Returns the length of digest that this HMAC will create.
65 // Calculates the HMAC for the message in |data| using the algorithm supplied
66 // to the constructor and the key supplied to the Init method. The HMAC is
71 // Verifies that the HMAC for the message in |data| equals the HMAC provided
81 // Verifies a truncated HMAC, behaving identical to Verify(), excep
    [all...]
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...]
  /external/tensorflow/tensorflow/core/platform/s3/
s3_crypto.h 17 #include <aws/core/utils/crypto/HMAC.h>
31 std::shared_ptr<Aws::Utils::Crypto::HMAC> CreateImplementation()
s3_crypto.cc 16 #include <openssl/hmac.h>
24 class S3Sha256HMACOpenSSLImpl : public Aws::Utils::Crypto::HMAC {
108 std::shared_ptr<Aws::Utils::Crypto::HMAC>
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
test_hmac.py 1 import hmac
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/test/
test_hmac.py 1 import hmac
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
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
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
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...]
  /external/python/cpython3/Lib/test/
test_hmac.py 2 import hmac
21 # Test the HMAC module against test vectors from the RFC.
24 h = hmac.HMAC(key, data, digestmod=hashlib.md5)
26 self.assertEqual(h.name, "hmac-md5")
30 h = hmac.HMAC(key, data, digestmod='md5')
32 self.assertEqual(h.name, "hmac-md5")
68 h = hmac.HMAC(key, data, digestmod=hashlib.sha1
    [all...]
  /external/python/cpython2/Lib/test/
test_hmac.py 3 import hmac
12 # Test the HMAC module against test vectors from the RFC.
15 h = hmac.HMAC(key, data)
49 h = hmac.HMAC(key, data, digestmod=hashlib.sha1)
83 h = hmac.HMAC(key, data, digestmod=hashfunc)
178 'd by the HMAC algorithm.',
219 hmac.HMAC('a', 'b', digestmod=MockCrazyHash
    [all...]
  /external/boringssl/src/crypto/fipsmodule/
bcm.c 24 #include <openssl/hmac.h>
69 #include "hmac/hmac.c"
117 if (!HMAC(EVP_sha512(), kHMACKey, sizeof(kHMACKey), start, end - start,
  /device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
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/python/cpython2/Lib/
hmac.py 0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
14 # The size of the digests returned by HMAC depends on the underlying
15 # hashing module used. Use digest_size from the instance of HMAC instead.
18 # A unique object passed by HMAC.copy() to the HMAC constructor, in order
19 # that the latter return very quickly. HMAC("") in contrast is quite
23 class HMAC:
24 """RFC 2104 HMAC class. Also complies with RFC 4231.
28 blocksize = 64 # 512-bit HMAC; can be changed in subclasses
    [all...]
  /external/scapy/scapy/layers/tls/crypto/
hkdf.py 18 from cryptography.hazmat.primitives.hmac import HMAC
61 hm = HMAC(finished_key, self.hash, default_backend())
  /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/go/darwin-x86/src/crypto/hmac/
hmac.go 6 Package hmac implements the Keyed-Hash Message Authentication Code (HMAC) as
8 An HMAC is a cryptographic hash that uses a key to sign a message.
14 // CheckMAC reports whether messageMAC is a valid HMAC tag for message.
16 mac := hmac.New(sha256.New, key)
19 return hmac.Equal(messageMAC, expectedMAC)
22 package hmac package
35 // hmac = H([key ^ opad] H([key ^ ipad] text))
37 type hmac struct { type
44 func (h *hmac) Sum(in []byte) []byte
    [all...]
  /prebuilts/go/linux-x86/src/crypto/hmac/
hmac.go 6 Package hmac implements the Keyed-Hash Message Authentication Code (HMAC) as
8 An HMAC is a cryptographic hash that uses a key to sign a message.
14 // CheckMAC reports whether messageMAC is a valid HMAC tag for message.
16 mac := hmac.New(sha256.New, key)
19 return hmac.Equal(messageMAC, expectedMAC)
22 package hmac package
35 // hmac = H([key ^ opad] H([key ^ ipad] text))
37 type hmac struct { type
44 func (h *hmac) Sum(in []byte) []byte
    [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
80 OPENSSL_EXPORT uint8_t *HMAC(const EVP_MD *evp_md, const void *key,
88 // HMAC_CTX_init initialises |ctx| for use in an HMAC operation. It's assumed
116 // HMAC_Update hashes |data_len| bytes from |data| into the current HMAC
121 // HMAC_Final completes the HMAC operation in |ctx| and writes the result to
132 // HMAC_size returns the size, in bytes, of the HMAC that will be produced by
  /compatibility/cdd/9_security-model/
9_11_keys-and-credentials.md 18 * [C-1-2] MUST have implementations of RSA, AES, ECDSA and HMAC cryptographic
  /external/python/cpython3/Lib/
hmac.py 0 """HMAC (Keyed-Hashing for Message Authentication) Python module.
3 Implements the HMAC algorithm as described by RFC 2104.
13 # The size of the digests returned by HMAC depends on the underlying
14 # hashing module used. Use digest_size from the instance of HMAC instead.
19 class HMAC:
20 """RFC 2104 HMAC class. Also complies with RFC 4231.
24 blocksize = 64 # 512-bit HMAC; can be changed in subclasses.
27 """Create a new HMAC object.
45 _warnings.warn("HMAC() without an explicit digestmod argument "
88 return "hmac-" + self.inner.nam
    [all...]

Completed in 1299 milliseconds

1 2 3 4