Lines Matching defs:key

3  * Symmetric key ciphers.
21 * struct skcipher_request - Symmetric key cipher request
69 * struct skcipher_alg - symmetric key cipher definition
70 * @min_keysize: Minimum key size supported by the transformation. This is the
71 * smallest key length supported by this transformation algorithm.
75 * @max_keysize: Maximum key size supported by the transformation. This is the
76 * largest key length supported by this transformation algorithm.
80 * @setkey: Set key for the transformation. This function is used to either
81 * program a supplied key into the hardware or store the key in the
85 * object, so one must make sure the key is properly reprogrammed into
86 * the hardware. This function is also responsible for checking the key
89 * the algorithm doesn't support all of the key sizes.
96 * the algorithm doesn't support all of the key sizes. In case the
97 * key was stored in transformation context, the key might need to be
127 int (*setkey)(struct crypto_skcipher *tfm, const u8 *key,
163 * Symmetric key cipher API is used with the ciphers of type
178 * For the symmetric key cipher API, the state is maintained with the tfm
197 * crypto_alloc_skcipher() - allocate symmetric key cipher handle
375 * crypto_skcipher_setkey() - set key for cipher
377 * @key: buffer holding the key
378 * @keylen: length of the key in bytes
380 * The caller provided key is set for the skcipher referenced by the cipher
383 * Note, the key length determines the cipher type. Many block ciphers implement
384 * different cipher modes depending on the key size, such as AES-128 vs AES-192
385 * vs. AES-256. When providing a 16 byte key for an AES cipher handle, AES-128
388 * Return: 0 if the setting of the key was successful; < 0 if an error occurred
391 const u8 *key, unsigned int keylen);
394 const u8 *key, unsigned int keylen)
396 return crypto_skcipher_setkey(&tfm->base, key, keylen);
464 * required for the symmetric key cipher operation. This includes the cipher