Lines Matching refs:keylen
42 ctx->keylen = keybits / 8; in aes_siv_newctx()
77 static int siv_init(void *vctx, const unsigned char *key, size_t keylen, in siv_init() argument
89 if (keylen != ctx->keylen) { in siv_init()
93 if (!ctx->hw->initkey(ctx, key, ctx->keylen)) in siv_init()
99 static int siv_einit(void *vctx, const unsigned char *key, size_t keylen, in siv_einit() argument
103 return siv_init(vctx, key, keylen, iv, ivlen, params, 1); in siv_einit()
106 static int siv_dinit(void *vctx, const unsigned char *key, size_t keylen, in siv_dinit() argument
110 return siv_init(vctx, key, keylen, iv, ivlen, params, 0); in siv_dinit()
180 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->keylen)) { in aes_siv_get_ctx_params()
228 size_t keylen; in aes_siv_set_ctx_params() local
230 if (!OSSL_PARAM_get_size_t(p, &keylen)) { in aes_siv_set_ctx_params()
235 if (keylen != ctx->keylen) in aes_siv_set_ctx_params()