Lines Matching defs:key
28 typedef size_t (*aeswrap_fn)(void *key, const unsigned char *iv,
77 static int aes_wrap_init(void *vctx, const unsigned char *key,
97 if (key != NULL) {
109 * If the designated cipher function for a key-wrap algorithm is chosen
118 AES_set_encrypt_key(key, keylen * 8, &wctx->ks.ks);
121 AES_set_decrypt_key(key, keylen * 8, &wctx->ks.ks);
128 static int aes_wrap_einit(void *ctx, const unsigned char *key, size_t keylen,
132 return aes_wrap_init(ctx, key, keylen, iv, ivlen, params, 1);
135 static int aes_wrap_dinit(void *ctx, const unsigned char *key, size_t keylen,
139 return aes_wrap_init(ctx, key, keylen, iv, ivlen, params, 0);