Lines Matching refs:p

45     OSSL_PARAM *p;  in ossl_cipher_generic_get_params()  local
47 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_MODE); in ossl_cipher_generic_get_params()
48 if (p != NULL && !OSSL_PARAM_set_uint(p, md)) { in ossl_cipher_generic_get_params()
52 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_AEAD); in ossl_cipher_generic_get_params()
53 if (p != NULL in ossl_cipher_generic_get_params()
54 && !OSSL_PARAM_set_int(p, (flags & PROV_CIPHER_FLAG_AEAD) != 0)) { in ossl_cipher_generic_get_params()
58 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_CUSTOM_IV); in ossl_cipher_generic_get_params()
59 if (p != NULL in ossl_cipher_generic_get_params()
60 && !OSSL_PARAM_set_int(p, (flags & PROV_CIPHER_FLAG_CUSTOM_IV) != 0)) { in ossl_cipher_generic_get_params()
64 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_CTS); in ossl_cipher_generic_get_params()
65 if (p != NULL in ossl_cipher_generic_get_params()
66 && !OSSL_PARAM_set_int(p, (flags & PROV_CIPHER_FLAG_CTS) != 0)) { in ossl_cipher_generic_get_params()
70 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS1_MULTIBLOCK); in ossl_cipher_generic_get_params()
71 if (p != NULL in ossl_cipher_generic_get_params()
72 && !OSSL_PARAM_set_int(p, (flags & PROV_CIPHER_FLAG_TLS1_MULTIBLOCK) != 0)) { in ossl_cipher_generic_get_params()
76 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_HAS_RAND_KEY); in ossl_cipher_generic_get_params()
77 if (p != NULL in ossl_cipher_generic_get_params()
78 && !OSSL_PARAM_set_int(p, (flags & PROV_CIPHER_FLAG_RAND_KEY) != 0)) { in ossl_cipher_generic_get_params()
82 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_KEYLEN); in ossl_cipher_generic_get_params()
83 if (p != NULL && !OSSL_PARAM_set_size_t(p, kbits / 8)) { in ossl_cipher_generic_get_params()
87 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_BLOCK_SIZE); in ossl_cipher_generic_get_params()
88 if (p != NULL && !OSSL_PARAM_set_size_t(p, blkbits / 8)) { in ossl_cipher_generic_get_params()
92 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IVLEN); in ossl_cipher_generic_get_params()
93 if (p != NULL && !OSSL_PARAM_set_size_t(p, ivbits / 8)) { in ossl_cipher_generic_get_params()
116 const OSSL_PARAM *p; variable
123 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_KEYLEN);
124 if (p != NULL) {
127 if (!OSSL_PARAM_get_size_t(p, &keylen)) {
546 OSSL_PARAM *p; in ossl_cipher_generic_get_ctx_params() local
548 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IVLEN); in ossl_cipher_generic_get_ctx_params()
549 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
553 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_PADDING); in ossl_cipher_generic_get_ctx_params()
554 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->pad)) { in ossl_cipher_generic_get_ctx_params()
558 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IV); in ossl_cipher_generic_get_ctx_params()
559 if (p != NULL in ossl_cipher_generic_get_ctx_params()
560 && !OSSL_PARAM_set_octet_ptr(p, &ctx->oiv, ctx->ivlen) in ossl_cipher_generic_get_ctx_params()
561 && !OSSL_PARAM_set_octet_string(p, &ctx->oiv, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
565 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_UPDATED_IV); in ossl_cipher_generic_get_ctx_params()
566 if (p != NULL in ossl_cipher_generic_get_ctx_params()
567 && !OSSL_PARAM_set_octet_ptr(p, &ctx->iv, ctx->ivlen) in ossl_cipher_generic_get_ctx_params()
568 && !OSSL_PARAM_set_octet_string(p, &ctx->iv, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
572 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_NUM); in ossl_cipher_generic_get_ctx_params()
573 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->num)) { in ossl_cipher_generic_get_ctx_params()
577 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_KEYLEN); in ossl_cipher_generic_get_ctx_params()
578 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->keylen)) { in ossl_cipher_generic_get_ctx_params()
582 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS_MAC); in ossl_cipher_generic_get_ctx_params()
583 if (p != NULL in ossl_cipher_generic_get_ctx_params()
584 && !OSSL_PARAM_set_octet_ptr(p, ctx->tlsmac, ctx->tlsmacsize)) { in ossl_cipher_generic_get_ctx_params()
594 const OSSL_PARAM *p; in ossl_cipher_generic_set_ctx_params() local
599 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_PADDING); in ossl_cipher_generic_set_ctx_params()
600 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
603 if (!OSSL_PARAM_get_uint(p, &pad)) { in ossl_cipher_generic_set_ctx_params()
609 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_USE_BITS); in ossl_cipher_generic_set_ctx_params()
610 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
613 if (!OSSL_PARAM_get_uint(p, &bits)) { in ossl_cipher_generic_set_ctx_params()
619 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS_VERSION); in ossl_cipher_generic_set_ctx_params()
620 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
621 if (!OSSL_PARAM_get_uint(p, &ctx->tlsversion)) { in ossl_cipher_generic_set_ctx_params()
626 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS_MAC_SIZE); in ossl_cipher_generic_set_ctx_params()
627 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
628 if (!OSSL_PARAM_get_size_t(p, &ctx->tlsmacsize)) { in ossl_cipher_generic_set_ctx_params()
633 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_NUM); in ossl_cipher_generic_set_ctx_params()
634 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
637 if (!OSSL_PARAM_get_uint(p, &num)) { in ossl_cipher_generic_set_ctx_params()