Lines Matching defs:key
646 u8 key[TALITOS_MAX_KEY_SIZE];
682 const u8 *key, unsigned int keylen)
687 if (crypto_authenc_extractkeys(&keys, key, keylen) != 0)
693 memcpy(ctx->key, keys.authkey, keys.authkeylen);
694 memcpy(&ctx->key[keys.authkeylen], keys.enckey, keys.enckeylen);
956 /* hmac key */
957 map_single_talitos_ptr(dev, &desc->ptr[0], ctx->authkeylen, &ctx->key,
1000 /* cipher key */
1002 (char *)&ctx->key + ctx->authkeylen, 0,
1322 const u8 *key, unsigned int keylen)
1326 memcpy(&ctx->key, key, keylen);
1387 /* cipher key */
1389 (char *)&ctx->key, 0, DMA_TO_DEVICE);
1582 /* HMAC key */
1585 (char *)&ctx->key, 0, DMA_TO_DEVICE);
1835 static int keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen,
1851 /* Keep tfm keylen == 0 during hash of the long key */
1856 sg_init_one(&sg[0], key, keylen);
1878 static int ahash_setkey(struct crypto_ahash *tfm, const u8 *key,
1890 memcpy(ctx->key, key, keysize);
1892 /* Must get the hash of the long key */
1893 ret = keyhash(tfm, key, keylen, hash);
1901 memcpy(ctx->key, hash, digestsize);