Lines Matching refs:p

91     const OSSL_PARAM *p;  in aes_set_ctx_params()  local
100 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_AEAD_MAC_KEY); in aes_set_ctx_params()
101 if (p != NULL) { in aes_set_ctx_params()
102 if (p->data_type != OSSL_PARAM_OCTET_STRING) { in aes_set_ctx_params()
106 hw->init_mac_key(ctx, p->data, p->data_size); in aes_set_ctx_params()
110 p = OSSL_PARAM_locate_const(params, in aes_set_ctx_params()
112 if (p != NULL in aes_set_ctx_params()
113 && !OSSL_PARAM_get_size_t(p, &ctx->multiblock_max_send_fragment)) { in aes_set_ctx_params()
126 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_AAD); in aes_set_ctx_params()
127 if (p != NULL) { in aes_set_ctx_params()
130 if (p->data_type != OSSL_PARAM_OCTET_STRING in aes_set_ctx_params()
136 mb_param.inp = p->data; in aes_set_ctx_params()
137 mb_param.len = p->data_size; in aes_set_ctx_params()
151 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_ENC); in aes_set_ctx_params()
152 if (p != NULL) { in aes_set_ctx_params()
158 if (p->data_type != OSSL_PARAM_OCTET_STRING in aes_set_ctx_params()
166 mb_param.out = p->data; in aes_set_ctx_params()
174 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_AEAD_TLS1_AAD); in aes_set_ctx_params()
175 if (p != NULL) { in aes_set_ctx_params()
176 if (p->data_type != OSSL_PARAM_OCTET_STRING) { in aes_set_ctx_params()
180 if (hw->set_tls1_aad(ctx, p->data, p->data_size) <= 0) in aes_set_ctx_params()
184 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); in aes_set_ctx_params()
185 if (p != NULL) { in aes_set_ctx_params()
188 if (!OSSL_PARAM_get_size_t(p, &keylen)) { in aes_set_ctx_params()
198 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS_VERSION); in aes_set_ctx_params()
199 if (p != NULL) { in aes_set_ctx_params()
200 if (!OSSL_PARAM_get_uint(p, &ctx->base.tlsversion)) { in aes_set_ctx_params()
223 OSSL_PARAM *p; in aes_get_ctx_params() local
226 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_MAX_BUFSIZE); in aes_get_ctx_params()
227 if (p != NULL) { in aes_get_ctx_params()
232 if (!OSSL_PARAM_set_size_t(p, len)) { in aes_get_ctx_params()
238 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_INTERLEAVE); in aes_get_ctx_params()
239 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->multiblock_interleave)) { in aes_get_ctx_params()
244 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_AAD_PACKLEN); in aes_get_ctx_params()
245 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->multiblock_aad_packlen)) { in aes_get_ctx_params()
250 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK_ENC_LEN); in aes_get_ctx_params()
251 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->multiblock_encrypt_len)) { in aes_get_ctx_params()
257 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD); in aes_get_ctx_params()
258 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tls_aad_pad)) { in aes_get_ctx_params()
262 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_KEYLEN); in aes_get_ctx_params()
263 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.keylen)) { in aes_get_ctx_params()
267 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IVLEN); in aes_get_ctx_params()
268 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in aes_get_ctx_params()
272 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IV); in aes_get_ctx_params()
273 if (p != NULL in aes_get_ctx_params()
274 && !OSSL_PARAM_set_octet_string(p, ctx->base.oiv, ctx->base.ivlen) in aes_get_ctx_params()
275 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.oiv, ctx->base.ivlen)) { in aes_get_ctx_params()
279 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_UPDATED_IV); in aes_get_ctx_params()
280 if (p != NULL in aes_get_ctx_params()
281 && !OSSL_PARAM_set_octet_string(p, ctx->base.iv, ctx->base.ivlen) in aes_get_ctx_params()
282 && !OSSL_PARAM_set_octet_ptr(p, &ctx->base.iv, ctx->base.ivlen)) { in aes_get_ctx_params()