Lines Matching defs:key
28 /* key bytes we use for the ChaCha20 IV */
54 /* the key we generate for Poly1305 using Chacha20 */
55 u8 key[POLY1305_KEY_SIZE];
318 sg_init_one(preq->src, rctx->key, sizeof(rctx->key));
323 ahash_request_set_crypt(&preq->req, preq->src, NULL, sizeof(rctx->key));
376 memset(rctx->key, 0, sizeof(rctx->key));
377 sg_init_one(creq->src, rctx->key, sizeof(rctx->key));
474 static int chachapoly_setkey(struct crypto_aead *aead, const u8 *key,
483 memcpy(ctx->salt, key + keylen, ctx->saltlen);
488 return crypto_skcipher_setkey(ctx->chacha, key, keylen);