Lines Matching refs:p
117 OSSL_PARAM *p; in rc4_hmac_md5_get_ctx_params() local
119 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_KEYLEN); in rc4_hmac_md5_get_ctx_params()
120 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.keylen)) { in rc4_hmac_md5_get_ctx_params()
125 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IVLEN); in rc4_hmac_md5_get_ctx_params()
126 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->base.ivlen)) { in rc4_hmac_md5_get_ctx_params()
130 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_AEAD_TLS1_AAD_PAD); in rc4_hmac_md5_get_ctx_params()
131 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->tls_aad_pad_sz)) { in rc4_hmac_md5_get_ctx_params()
153 const OSSL_PARAM *p; in rc4_hmac_md5_set_ctx_params() local
159 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN); in rc4_hmac_md5_set_ctx_params()
160 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
161 if (!OSSL_PARAM_get_size_t(p, &sz)) { in rc4_hmac_md5_set_ctx_params()
171 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_IVLEN); in rc4_hmac_md5_set_ctx_params()
172 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
173 if (!OSSL_PARAM_get_size_t(p, &sz)) { in rc4_hmac_md5_set_ctx_params()
183 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_AEAD_TLS1_AAD); in rc4_hmac_md5_set_ctx_params()
184 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
185 if (p->data_type != OSSL_PARAM_OCTET_STRING) { in rc4_hmac_md5_set_ctx_params()
189 sz = GET_HW(ctx)->tls_init(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
196 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_AEAD_MAC_KEY); in rc4_hmac_md5_set_ctx_params()
197 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
198 if (p->data_type != OSSL_PARAM_OCTET_STRING) { in rc4_hmac_md5_set_ctx_params()
202 GET_HW(ctx)->init_mackey(&ctx->base, p->data, p->data_size); in rc4_hmac_md5_set_ctx_params()
204 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS_VERSION); in rc4_hmac_md5_set_ctx_params()
205 if (p != NULL) { in rc4_hmac_md5_set_ctx_params()
206 if (!OSSL_PARAM_get_uint(p, &ctx->base.tlsversion)) { in rc4_hmac_md5_set_ctx_params()