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

1 2 3 4 5 6 7 8 910

  /external/dhcpcd-6.8.2/crypt/
hmac_md5.c 49 const uint8_t *key, size_t key_len,
58 if (key_len > HMAC_PAD_LEN) {
60 MD5Update(&context, key, (unsigned int)key_len);
63 key_len = MD5_DIGEST_LENGTH;
67 memcpy(k_ipad, key, key_len);
68 memcpy(k_opad, key, key_len);
69 memset(k_ipad + key_len, 0, sizeof(k_ipad) - key_len);
70 memset(k_opad + key_len, 0, sizeof(k_opad) - key_len);
    [all...]
  /external/wpa_supplicant_8/src/crypto/
sha384.h 14 int hmac_sha384_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha384(const u8 *key, size_t key_len, const u8 *data,
18 void sha384_prf(const u8 *key, size_t key_len, const char *label,
20 void sha384_prf_bits(const u8 *key, size_t key_len, const char *label,
md5.c 19 * @key_len: Length of the key in bytes
26 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
44 if (key_len > 64) {
45 if (md5_vector(1, &key, &key_len, tk))
48 key_len = 16;
62 os_memcpy(k_pad, key, key_len);
79 os_memcpy(k_pad, key, key_len);
99 * @key_len: Length of the key in bytes
105 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
108 return hmac_md5_vector(key, key_len, 1, &data, &data_len, mac)
    [all...]
md5.h 14 int hmac_md5_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_md5(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
sha1.c 19 * @key_len: Length of the key in bytes
26 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
44 if (key_len > 64) {
45 if (sha1_vector(1, &key, &key_len, tk))
48 key_len = 20;
62 os_memcpy(k_pad, key, key_len);
78 os_memcpy(k_pad, key, key_len);
97 * @key_len: Length of the key in bytes
103 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
106 return hmac_sha1_vector(key, key_len, 1, &data, &data_len, mac)
    [all...]
sha256.c 19 * @key_len: Length of the key in bytes
26 int hmac_sha256_vector(const u8 *key, size_t key_len, size_t num_elem,
43 if (key_len > 64) {
44 if (sha256_vector(1, &key, &key_len, tk) < 0)
47 key_len = 32;
61 os_memcpy(k_pad, key, key_len);
77 os_memcpy(k_pad, key, key_len);
94 * @key_len: Length of the key in bytes
100 int hmac_sha256(const u8 *key, size_t key_len, const u8 *data,
103 return hmac_sha256_vector(key, key_len, 1, &data, &data_len, mac)
    [all...]
crypto_internal.c 35 size_t key_len; member in struct:crypto_hash
40 size_t key_len)
76 if (key_len > sizeof(k_pad)) {
78 MD5Update(&ctx->u.md5, key, key_len);
81 key_len = 16;
83 os_memcpy(ctx->key, key, key_len);
84 ctx->key_len = key_len;
86 os_memcpy(k_pad, key, key_len);
87 if (key_len < sizeof(k_pad)
    [all...]
sha1.h 14 int hmac_sha1_vector(const u8 *key, size_t key_len, size_t num_elem,
16 int hmac_sha1(const u8 *key, size_t key_len, const u8 *data, size_t data_len,
18 int sha1_prf(const u8 *key, size_t key_len, const char *label,
20 int sha1_t_prf(const u8 *key, size_t key_len, const char *label,
sha256-prf.c 19 * @key_len: Length of the key in bytes
30 int sha256_prf(const u8 *key, size_t key_len, const char *label,
33 return sha256_prf_bits(key, key_len, label, data, data_len, buf,
41 * @key_len: Length of the key in bytes
54 int sha256_prf_bits(const u8 *key, size_t key_len, const char *label,
81 if (hmac_sha256_vector(key, key_len, 4, addr, len,
86 if (hmac_sha256_vector(key, key_len, 4, addr, len,
sha384-prf.c 19 * @key_len: Length of the key in bytes
29 void sha384_prf(const u8 *key, size_t key_len, const char *label,
32 sha384_prf_bits(key, key_len, label, data, data_len, buf, buf_len * 8);
39 * @key_len: Length of the key in bytes
51 void sha384_prf_bits(const u8 *key, size_t key_len, const char *label,
78 hmac_sha384_vector(key, key_len, 4, addr, len,
82 hmac_sha384_vector(key, key_len, 4, addr, len, hash);
sha1-prf.c 19 * @key_len: Length of the key in bytes
30 int sha1_prf(const u8 *key, size_t key_len, const char *label,
51 if (hmac_sha1_vector(key, key_len, 3, addr, len,
56 if (hmac_sha1_vector(key, key_len, 3, addr, len,
  /external/srtp/crypto/include/
null_auth.h 55 null_auth_alloc(auth_t **a, int key_len, int out_len);
61 null_auth_init(null_auth_ctx_t *state, const uint8_t *key, int key_len);
cryptoalg.h 106 unsigned key_len; member in struct:cryptoalg_ctx_t
114 #define cryptoalg_get_key_len(cryptoalg) ((cryptoalg)->key_len)
hmac.h 59 hmac_alloc(auth_t **a, int key_len, int out_len);
65 hmac_init(hmac_ctx_t *state, const uint8_t *key, int key_len);
xfm.h 77 unsigned key_len; member in struct:xfm_ctx_t
84 #define xfm_get_key_len(xfm) ((xfm)->key_len)
117 unsigned key_len; member in struct:cryptoalg_ctx_t
125 #define cryptoalg_get_key_len(cryptoalg) ((cryptoalg)->key_len)
  /external/wpa_supplicant_8/src/eap_common/
eap_peap_common.h 12 int peap_prfplus(int version, const u8 *key, size_t key_len,
  /external/vboot_reference/firmware/lib/cryptolib/
rsa_utility.c 16 int key_len; /* Key length in bytes. (int type matches siglen_map) */ local
18 key_len = siglen_map[algorithm];
20 * 2 * key_len bytes for the n and rr arrays
23 *out_size = (2 * key_len + sizeof(uint32_t) + sizeof(uint32_t));
51 uint64_t key_len; local
57 key_len = key->len;
58 key_len *= sizeof(uint32_t);
61 if (RSA1024NUMBYTES != key_len &&
62 RSA2048NUMBYTES != key_len &&
63 RSA4096NUMBYTES != key_len &
    [all...]
  /external/webrtc/talk/session/media/
externalhmac.cc 92 err_status_t external_hmac_alloc(auth_t** a, int key_len, int out_len) {
97 if (key_len > 20)
117 (*a)->key_len = key_len;
135 int key_len) {
136 if (key_len > HMAC_KEY_LENGTH)
139 memset(state->key, 0, key_len);
140 memcpy(state->key, key, key_len);
141 state->key_length = key_len;
externalhmac.h 69 err_status_t external_hmac_alloc(auth_t** a, int key_len, int out_len);
75 int key_len);
  /external/srtp/crypto/hash/
null_auth.c 56 null_auth_alloc(auth_t **a, int key_len, int out_len) {
60 debug_print(mod_auth, "allocating auth func with key length %d", key_len);
74 (*a)->key_len = key_len;
100 null_auth_init(null_auth_ctx_t *state, const uint8_t *key, int key_len) {
  /hardware/intel/common/libva/va/drm/
va_drm_utils.c 34 int key_len; member in struct:driver_name_map
64 if (drm_version->name_len >= m->key_len &&
65 strncmp(drm_version->name, m->key, m->key_len) == 0)
  /external/tcpdump/
signature.c 50 unsigned int key_len, uint8_t *digest)
59 if (key_len > 64) {
64 MD5_Update(&tctx, key, key_len);
68 key_len = 16;
85 memcpy(k_ipad, key, key_len);
86 memcpy(k_opad, key, key_len);
  /external/curl/lib/
hash.h 62 size_t key_len; member in struct:curl_hash_element
77 void *Curl_hash_add(struct curl_hash *h, void *key, size_t key_len, void *p);
78 int Curl_hash_delete(struct curl_hash *h, void *key, size_t key_len);
79 void *Curl_hash_pick(struct curl_hash *, void * key, size_t key_len);
  /external/libweave/third_party/libuweave/src/
crypto_hmac.h 23 size_t key_len,
  /external/srtp/crypto/cipher/
null_cipher.c 56 null_cipher_alloc(cipher_t **c, int key_len) {
61 "allocating cipher with key length %d", key_len);
74 (*c)->key_len = key_len;

Completed in 213 milliseconds

1 2 3 4 5 6 7 8 910