Home
last modified time | relevance | path

Searched refs:keylen (Results 1 – 25 of 157) sorted by relevance

1234567

/external/rust/crates/ring/tests/
Dhmac_tests.txt4 Input = "Sample message for keylen=blocklen"
9 Input = "Sample message for keylen<blocklen"
14 Input = "Sample message for keylen=blocklen"
19 Input = "Sample message for keylen=blocklen"
24 Input = "Sample message for keylen<blocklen"
29 Input = "Sample message for keylen=blocklen"
34 Input = "Sample message for keylen=blocklen"
39 Input = "Sample message for keylen<blocklen"
44 Input = "Sample message for keylen=blocklen"
49 Input = "Sample message for keylen=blocklen"
[all …]
/external/python/cpython3/Modules/_blake2/impl/
Dblake2-dispatch.c159 int blake2b_init_key_ref( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
163 …b_ref( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
168 int blake2b_init_key_sse2( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
172 …_sse2( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
175 int blake2b_init_key_ssse3( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
179 …ssse3( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
182 int blake2b_init_key_sse41( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
186 …sse41( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
189 int blake2b_init_key_avx( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
193 …b_avx( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
[all …]
Dblake2sp.c27 static int blake2sp_init_leaf( blake2s_state *S, uint8_t outlen, uint8_t keylen, uint64_t offset ) in blake2sp_init_leaf() argument
31 P->key_length = keylen; in blake2sp_init_leaf()
45 static int blake2sp_init_root( blake2s_state *S, uint8_t outlen, uint8_t keylen ) in blake2sp_init_root() argument
49 P->key_length = keylen; in blake2sp_init_root()
83 int blake2sp_init_key( blake2sp_state *S, size_t outlen, const void *key, size_t keylen ) in blake2sp_init_key() argument
87 if( !key || !keylen || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2sp_init_key()
92 if( blake2sp_init_root( S->R, ( uint8_t ) outlen, ( uint8_t ) keylen ) < 0 ) in blake2sp_init_key()
96 if( blake2sp_init_leaf( S->S[i], ( uint8_t ) outlen, ( uint8_t ) keylen, i ) < 0 ) in blake2sp_init_key()
105 memcpy( block, key, keylen ); in blake2sp_init_key()
194 …ake2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2sp() argument
[all …]
Dblake2bp.c28 static int blake2bp_init_leaf( blake2b_state *S, uint8_t outlen, uint8_t keylen, uint64_t offset ) in blake2bp_init_leaf() argument
32 P->key_length = keylen; in blake2bp_init_leaf()
47 static int blake2bp_init_root( blake2b_state *S, uint8_t outlen, uint8_t keylen ) in blake2bp_init_root() argument
51 P->key_length = keylen; in blake2bp_init_root()
86 int blake2bp_init_key( blake2bp_state *S, size_t outlen, const void *key, size_t keylen ) in blake2bp_init_key() argument
90 if( !key || !keylen || keylen > BLAKE2B_KEYBYTES ) return -1; in blake2bp_init_key()
95 if( blake2bp_init_root( S->R, ( uint8_t ) outlen, ( uint8_t ) keylen ) < 0 ) in blake2bp_init_key()
99 if( blake2bp_init_leaf( S->S[i], ( uint8_t ) outlen, ( uint8_t ) keylen, i ) < 0 ) in blake2bp_init_key()
108 memcpy( block, key, keylen ); in blake2bp_init_key()
196 …ake2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2bp() argument
[all …]
Dblake2s.c183 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen );
186 …ake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
232 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ) in blake2s_init_key() argument
236 if ( ( !key ) || ( !keylen ) || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s_init_key()
241 keylen, in blake2s_init_key()
258 memcpy( block, key, keylen ); in blake2s_init_key()
381 …lake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2s() argument
390 if ( NULL == key && keylen > 0) return -1; in blake2s()
394 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s()
396 if( keylen > 0 ) in blake2s()
[all …]
Dblake2.h144 …BLAKE2_API int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen );
150 …BLAKE2_API int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
156 …AKE2_API int blake2sp_init_key( blake2sp_state *S, size_t outlen, const void *key, size_t keylen );
161 …AKE2_API int blake2bp_init_key( blake2bp_state *S, size_t outlen, const void *key, size_t keylen );
166 …ake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
167 …ake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
169 …ke2sp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
170 …ke2bp( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
Dblake2b-ref.c153 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
156 …ake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
198 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen ) in blake2b_init_key() argument
204 if ( !key || !keylen || keylen > BLAKE2B_KEYBYTES ) return -1; in blake2b_init_key()
207 P->key_length = ( uint8_t ) keylen; in blake2b_init_key()
223 memcpy( block, key, keylen ); in blake2b_init_key()
351 …lake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2b() argument
360 if( NULL == key && keylen > 0 ) return -1; in blake2b()
364 if( keylen > BLAKE2B_KEYBYTES ) return -1; in blake2b()
366 if( keylen > 0 ) in blake2b()
[all …]
Dblake2s-ref.c146 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen );
149 …ake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
191 int blake2s_init_key( blake2s_state *S, size_t outlen, const void *key, size_t keylen ) in blake2s_init_key() argument
197 if ( !key || !keylen || keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s_init_key()
200 P->key_length = ( uint8_t ) keylen; in blake2s_init_key()
216 memcpy( block, key, keylen ); in blake2s_init_key()
341 …lake2s( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2s() argument
350 if ( NULL == key && keylen > 0 ) return -1; in blake2s()
354 if( keylen > BLAKE2S_KEYBYTES ) return -1; in blake2s()
356 if( keylen > 0 ) in blake2s()
[all …]
Dblake2b.c197 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen );
200 …ake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen );
246 int blake2b_init_key( blake2b_state *S, size_t outlen, const void *key, size_t keylen ) in blake2b_init_key() argument
250 if ( ( !keylen ) || keylen > BLAKE2B_KEYBYTES ) return -1; in blake2b_init_key()
255 ( uint8_t ) keylen, in blake2b_init_key()
273 memcpy( block, key, keylen ); in blake2b_init_key()
403 …lake2b( uint8_t *out, const void *in, const void *key, size_t outlen, size_t inlen, size_t keylen ) in blake2b() argument
412 if( NULL == key && keylen > 0 ) return -1; in blake2b()
416 if( keylen > BLAKE2B_KEYBYTES ) return -1; in blake2b()
418 if( keylen ) in blake2b()
[all …]
/external/usrsctp/usrsctplib/netinet/
Dsctp_auth.c249 sctp_alloc_key(uint32_t keylen) in sctp_alloc_key() argument
253 SCTP_MALLOC(new_key, sctp_key_t *, sizeof(*new_key) + keylen, in sctp_alloc_key()
259 new_key->keylen = keylen; in sctp_alloc_key()
279 SCTP_PRINTF("%s: len %u, ", str, key->keylen); in sctp_print_key()
280 if (key->keylen) { in sctp_print_key()
281 for (i = 0; i < key->keylen; i++) in sctp_print_key()
298 SCTP_PRINTF("%s: len %u, ", str, key->keylen); in sctp_show_key()
299 if (key->keylen) { in sctp_show_key()
300 for (i = 0; i < key->keylen; i++) in sctp_show_key()
312 return (key->keylen); in sctp_get_keylen()
[all …]
/external/boringssl/src/crypto/hmac_extra/
Dhmac_tests.txt27 Input = "Sample message for keylen=blocklen"
32 Input = "Sample message for keylen<blocklen"
37 Input = "Sample message for keylen=blocklen"
42 Input = "Sample message for keylen=blocklen"
47 Input = "Sample message for keylen<blocklen"
52 Input = "Sample message for keylen=blocklen"
57 Input = "Sample message for keylen=blocklen"
62 Input = "Sample message for keylen<blocklen"
67 Input = "Sample message for keylen=blocklen"
72 Input = "Sample message for keylen=blocklen"
[all …]
/external/openssh/
Dxmss_hash.c41 …ar *out, const unsigned int type, const unsigned char *key, unsigned int keylen, const unsigned ch… in core_hash_SHA2() argument
43 unsigned char buf[inlen + n + keylen]; in core_hash_SHA2()
50 for (i=0; i < keylen; i++) { in core_hash_SHA2()
55 buf[keylen + n + i] = in[i]; in core_hash_SHA2()
59 SHA256(buf, inlen + keylen + n, out); in core_hash_SHA2()
64 SHA512(buf, inlen + keylen + n, out); in core_hash_SHA2()
74 int prf(unsigned char *out, const unsigned char *in, const unsigned char *key, unsigned int keylen) in prf() argument
76 return core_hash_SHA2(out, 3, key, keylen, in, 32, keylen); in prf()
82 …, unsigned long long inlen, const unsigned char *key, const unsigned int keylen, const unsigned in… in h_msg() argument
84 if (keylen != 3*n){ in h_msg()
[all …]
/external/ltp/lib/
Dtst_af_alg.c97 void tst_alg_setkey(int algfd, const uint8_t *key, unsigned int keylen) in tst_alg_setkey() argument
104 keybuf = SAFE_MALLOC(keylen); in tst_alg_setkey()
105 for (i = 0; i < keylen; i++) in tst_alg_setkey()
109 TEST(setsockopt(algfd, SOL_ALG, ALG_SET_KEY, key, keylen)); in tst_alg_setkey()
112 "unexpected error setting key (len=%u)", keylen); in tst_alg_setkey()
128 const uint8_t *key, unsigned int keylen) in tst_alg_setup() argument
134 if (keylen != 0) in tst_alg_setup()
135 tst_alg_setkey(algfd, key, keylen); in tst_alg_setup()
141 const uint8_t *key, unsigned int keylen) in tst_alg_setup_reqfd() argument
143 int algfd = tst_alg_setup(algtype, algname, key, keylen); in tst_alg_setup_reqfd()
/external/mdnsresponder/mDNSShared/
Ddnssd_clientlib.c76 unsigned long *keylen in InternalTXTRecordSearch() argument
81 *keylen = (unsigned long) strlen(key); in InternalTXTRecordSearch()
86 if (p <= e && *keylen <= x[0] && !strncasecmp(key, (char*)x+1, *keylen)) in InternalTXTRecordSearch()
87 if (*keylen == x[0] || x[1+*keylen] == '=') return(x); in InternalTXTRecordSearch()
252 unsigned long keylen, itemlen, remainder; in TXTRecordRemoveValue() local
253 uint8_t *item = InternalTXTRecordSearch(txtRec->datalen, txtRec->buffer, key, &keylen); in TXTRecordRemoveValue()
279 unsigned long keylen; in TXTRecordContainsKey() local
280 return (InternalTXTRecordSearch(txtLen, txtRecord, key, &keylen) ? 1 : 0); in TXTRecordContainsKey()
291 unsigned long keylen; in TXTRecordGetValuePtr() local
292 uint8_t *item = InternalTXTRecordSearch(txtLen, txtRecord, key, &keylen); in TXTRecordGetValuePtr()
[all …]
/external/openssh/openbsd-compat/
Dbcrypt_pbkdf.c112 u_int8_t *key, size_t keylen, unsigned int rounds) in bcrypt_pbkdf() argument
121 size_t origkeylen = keylen; in bcrypt_pbkdf()
126 if (passlen == 0 || saltlen == 0 || keylen == 0 || in bcrypt_pbkdf()
127 keylen > sizeof(out) * sizeof(out) || saltlen > 1<<20) in bcrypt_pbkdf()
131 stride = (keylen + sizeof(out) - 1) / sizeof(out); in bcrypt_pbkdf()
132 amt = (keylen + stride - 1) / stride; in bcrypt_pbkdf()
140 for (count = 1; keylen > 0; count++) { in bcrypt_pbkdf()
163 amt = MINIMUM(amt, keylen); in bcrypt_pbkdf()
170 keylen -= i; in bcrypt_pbkdf()
/external/curl/lib/
Dhmac.c54 unsigned int keylen) in Curl_HMAC_init() argument
75 if(keylen > hashparams->hmac_maxkeylen) { in Curl_HMAC_init()
77 (*hashparams->hmac_hupdate)(ctxt->hmac_hashctxt1, key, keylen); in Curl_HMAC_init()
81 keylen = hashparams->hmac_resultlen; in Curl_HMAC_init()
88 for(i = 0; i < keylen; i++) { in Curl_HMAC_init()
151 const unsigned char *key, const size_t keylen, in Curl_hmacit() argument
156 Curl_HMAC_init(hashparams, key, curlx_uztoui(keylen)); in Curl_hmacit()
/external/python/cryptography/src/cryptography/hazmat/backends/openssl/
Dutils.py24 keylen = backend._ffi.new("size_t *")
25 res = backend._lib.EVP_PKEY_derive(ctx, backend._ffi.NULL, keylen)
27 backend.openssl_assert(keylen[0] > 0)
28 buf = backend._ffi.new("unsigned char[]", keylen[0])
29 res = backend._lib.EVP_PKEY_derive(ctx, buf, keylen)
35 return backend._ffi.buffer(buf, keylen[0])[:]
/external/e2fsprogs/lib/ext2fs/
Dtdbtool.c207 static void insert_tdb(char *keyname, size_t keylen, char* data, size_t datalen) in insert_tdb() argument
211 if ((keyname == NULL) || (keylen == 0)) { in insert_tdb()
217 key.dsize = keylen; in insert_tdb()
226 static void store_tdb(char *keyname, size_t keylen, char* data, size_t datalen) in store_tdb() argument
230 if ((keyname == NULL) || (keylen == 0)) { in store_tdb()
241 key.dsize = keylen; in store_tdb()
253 static void show_tdb(char *keyname, size_t keylen) in show_tdb() argument
257 if ((keyname == NULL) || (keylen == 0)) { in show_tdb()
263 key.dsize = keylen; in show_tdb()
278 static void delete_tdb(char *keyname, size_t keylen) in delete_tdb() argument
[all …]
/external/vboot_reference/tests/
Dvb2_rsa_tests.sh19 for keylen in ${key_lengths[@]}
23 echo -e "For ${COL_YELLOW}RSA-$keylen and $hashalgo${COL_STOP}:"
25 ${TESTKEY_DIR}/key_rsa${keylen}.keyb \
26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \
Drun_rsa_tests.sh19 for keylen in ${key_lengths[@]}
23 echo -e "For ${COL_YELLOW}RSA-$keylen and $hashalgo${COL_STOP}:"
25 ${TESTKEY_DIR}/key_rsa${keylen}.keyb \
26 ${TEST_FILE}.rsa${keylen}_${hashalgo}.sig \
Dgen_test_vbpubks.sh14 for keylen in ${key_lengths[@]}
19 --in ${TESTKEY_DIR}/key_rsa${keylen}.keyb \
20 --out ${TESTKEY_DIR}/key_rsa${keylen}.${hashalgo}.vbpubk \
/external/libdrm/intel/
Duthash.h114 #define HASH_VALUE(keyptr,keylen,hashv) \ argument
116 HASH_FCN(keyptr, keylen, hashv); \
119 #define HASH_FIND_BYHASHVALUE(hh,head,keyptr,keylen,hashval,out) \ argument
126 …HASH_FIND_IN_BKT((head)->hh.tbl, hh, (head)->hh.tbl->buckets[ _hf_bkt ], keyptr, keylen, hashval, …
131 #define HASH_FIND(hh,head,keyptr,keylen,out) \ argument
134 HASH_VALUE(keyptr, keylen, _hf_hashv); \
135 HASH_FIND_BYHASHVALUE(hh, head, keyptr, keylen, _hf_hashv, out); \
238 (add)->hh.keylen = (unsigned) (keylen_in); \
289 (add)->hh.keylen = (unsigned) (keylen_in); \
477 #define HASH_BER(key,keylen,hashv) \ argument
[all …]
/external/fastrpc/inc/
Duthash.h92 #define HASH_FIND(hh,head,keyptr,keylen,out) \ argument
97 HASH_FCN(keyptr,keylen, (head)->hh.tbl->num_buckets, _hf_hashv, _hf_bkt); \
100 keyptr,keylen,out); \
165 (add)->hh.keylen = keylen_in; \
344 #define HASH_BER(key,keylen,num_bkts,hashv,bkt) \ argument
346 unsigned _hb_keylen=keylen; \
356 #define HASH_SAX(key,keylen,num_bkts,hashv,bkt) \ argument
361 for(_sx_i=0; _sx_i < keylen; _sx_i++) \
366 #define HASH_FNV(key,keylen,num_bkts,hashv,bkt) \ argument
371 for(_fn_i=0; _fn_i < keylen; _fn_i++) \
[all …]
/external/cn-cbor/src/
Dcn-get.c31 int keylen; in cn_cbor_mapget_string() local
34 keylen = strlen(key); in cn_cbor_mapget_string()
39 if (keylen != cp->length) { in cn_cbor_mapget_string()
42 if (memcmp(key, cp->v.str, keylen) == 0) { in cn_cbor_mapget_string()
/external/ltp/include/
Dtst_af_alg.h88 void tst_alg_setkey(int algfd, const uint8_t *key, unsigned int keylen);
123 const uint8_t *key, unsigned int keylen);
134 const uint8_t *key, unsigned int keylen);

1234567