Lines Matching refs:keylen
72 static int aes_xts_init(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_init() argument
89 if (keylen != ctx->keylen) { in aes_xts_init()
93 if (!aes_xts_check_keys_differ(key, keylen / 2, enc)) in aes_xts_init()
95 if (!ctx->hw->init(ctx, key, keylen)) in aes_xts_init()
101 static int aes_xts_einit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_einit() argument
106 if (s390x_aes_xts_einit(vctx, key, keylen, iv, ivlen, params) == 1) in aes_xts_einit()
109 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 1); in aes_xts_einit()
112 static int aes_xts_dinit(void *vctx, const unsigned char *key, size_t keylen, in aes_xts_dinit() argument
117 if (s390x_aes_xts_dinit(vctx, key, keylen, iv, ivlen, params) == 1) in aes_xts_dinit()
120 return aes_xts_init(vctx, key, keylen, iv, ivlen, params, 0); in aes_xts_dinit()
265 size_t keylen; in aes_xts_set_ctx_params() local
267 if (!OSSL_PARAM_get_size_t(p, &keylen)) { in aes_xts_set_ctx_params()
272 if (keylen != ctx->keylen) in aes_xts_set_ctx_params()