Home
last modified time | relevance | path

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

12

/include/crypto/
Dxts.h12 const u8 *key, unsigned int keylen) in xts_check_key() argument
18 if (keylen % 2) in xts_check_key()
22 if (fips_enabled && !crypto_memneq(key, key + (keylen / 2), keylen / 2)) in xts_check_key()
29 const u8 *key, unsigned int keylen) in xts_verify_key() argument
35 if (keylen % 2) in xts_verify_key()
41 !crypto_memneq(key, key + (keylen / 2), keylen / 2)) in xts_verify_key()
Dblake2s.h47 const void *key, size_t keylen) in __blake2s_init() argument
49 state->h[0] = BLAKE2S_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2s_init()
63 if (keylen) { in __blake2s_init()
64 memcpy(state->buf, key, keylen); in __blake2s_init()
65 memset(&state->buf[keylen], 0, BLAKE2S_BLOCK_SIZE - keylen); in __blake2s_init()
78 const size_t keylen) in blake2s_init_key() argument
81 !key || !keylen || keylen > BLAKE2S_KEY_SIZE)); in blake2s_init_key()
83 __blake2s_init(state, outlen, key, keylen); in blake2s_init_key()
91 const size_t keylen) in blake2s() argument
96 outlen > BLAKE2S_HASH_SIZE || keylen > BLAKE2S_KEY_SIZE || in blake2s()
[all …]
Dblake2b.h44 const void *key, size_t keylen) in __blake2b_init() argument
46 state->h[0] = BLAKE2B_IV0 ^ (0x01010000 | keylen << 8 | outlen); in __blake2b_init()
60 if (keylen) { in __blake2b_init()
61 memcpy(state->buf, key, keylen); in __blake2b_init()
62 memset(&state->buf[keylen], 0, BLAKE2B_BLOCK_SIZE - keylen); in __blake2b_init()
Dserpent.h22 unsigned int keylen);
23 int serpent_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
Dcast6.h18 int __cast6_setkey(struct cast6_ctx *ctx, const u8 *key, unsigned int keylen);
19 int cast6_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
Ddes.h42 int des_expand_key(struct des_ctx *ctx, const u8 *key, unsigned int keylen);
55 unsigned int keylen);
Dakcipher.h98 unsigned int keylen);
100 unsigned int keylen);
390 unsigned int keylen) in crypto_akcipher_set_pub_key() argument
394 return alg->set_pub_key(tfm, key, keylen); in crypto_akcipher_set_pub_key()
412 unsigned int keylen) in crypto_akcipher_set_priv_key() argument
416 return alg->set_priv_key(tfm, key, keylen); in crypto_akcipher_set_priv_key()
Daes.h37 static inline int aes_check_keylen(unsigned int keylen) in aes_check_keylen() argument
39 switch (keylen) { in aes_check_keylen()
Dauthenc.h30 unsigned int keylen);
Dcast5.h19 int cast5_setkey(struct crypto_tfm *tfm, const u8 *key, unsigned int keylen);
Dskcipher.h106 unsigned int keylen);
365 const u8 *key, unsigned int keylen);
368 const u8 *key, unsigned int keylen) in crypto_sync_skcipher_setkey() argument
370 return crypto_skcipher_setkey(&tfm->base, key, keylen); in crypto_sync_skcipher_setkey()
Dhash.h143 unsigned int keylen);
210 unsigned int keylen);
233 unsigned int keylen);
435 unsigned int keylen);
850 unsigned int keylen);
Dpublic_key.h24 u32 keylen; member
Dnhpoly1305.h62 const u8 *key, unsigned int keylen);
Daead.h138 unsigned int keylen);
305 const u8 *key, unsigned int keylen);
Dif_alg.h48 int (*setkey)(void *private, const u8 *key, unsigned int keylen);
/include/crypto/internal/
Dblake2b.h69 unsigned int keylen; member
73 const u8 *key, unsigned int keylen) in crypto_blake2b_setkey() argument
77 if (keylen == 0 || keylen > BLAKE2B_KEY_SIZE) in crypto_blake2b_setkey()
80 memcpy(tctx->key, key, keylen); in crypto_blake2b_setkey()
81 tctx->keylen = keylen; in crypto_blake2b_setkey()
92 __blake2b_init(state, outlen, tctx->key, tctx->keylen); in crypto_blake2b_init()
Ddes.h112 int keylen) in verify_aead_des_key() argument
114 if (keylen != DES_KEY_SIZE) in verify_aead_des_key()
120 int keylen) in verify_aead_des3_key() argument
122 if (keylen != DES3_EDE_KEY_SIZE) in verify_aead_des3_key()
Dcipher.h153 const u8 *key, unsigned int keylen);
/include/xen/interface/io/
Dnetif.h301 unsigned int keylen, in xen_netif_toeplitz_hash() argument
311 prefix |= (keyi < keylen) ? key[keyi] : 0; in xen_netif_toeplitz_hash()
329 prefix |= (keyi < keylen) ? key[keyi] : 0; in xen_netif_toeplitz_hash()
/include/keys/
Dtrusted_tpm.h34 unsigned int keylen, unsigned char *h1,
40 unsigned int keylen, ...);
/include/linux/
Devm.h18 extern int evm_set_key(void *key, size_t keylen);
55 static inline int evm_set_key(void *key, size_t keylen) in evm_set_key() argument
/include/net/netfilter/
Dnf_conntrack_count.h18 unsigned int keylen);
/include/uapi/linux/
Dtipc.h243 unsigned int keylen; /* in bytes */ member
254 return sizeof(*key) + key->keylen; in tipc_aead_key_size()
Dvirtio_crypto.h85 __le32 keylen; member

12