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)) {
578 OSSL_PARAM *p; in ossl_cipher_generic_get_ctx_params() local
580 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IVLEN); in ossl_cipher_generic_get_ctx_params()
581 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
585 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_PADDING); in ossl_cipher_generic_get_ctx_params()
586 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->pad)) { in ossl_cipher_generic_get_ctx_params()
590 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_IV); in ossl_cipher_generic_get_ctx_params()
591 if (p != NULL in ossl_cipher_generic_get_ctx_params()
592 && !OSSL_PARAM_set_octet_ptr(p, &ctx->oiv, ctx->ivlen) in ossl_cipher_generic_get_ctx_params()
593 && !OSSL_PARAM_set_octet_string(p, &ctx->oiv, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
597 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_UPDATED_IV); in ossl_cipher_generic_get_ctx_params()
598 if (p != NULL in ossl_cipher_generic_get_ctx_params()
599 && !OSSL_PARAM_set_octet_ptr(p, &ctx->iv, ctx->ivlen) in ossl_cipher_generic_get_ctx_params()
600 && !OSSL_PARAM_set_octet_string(p, &ctx->iv, ctx->ivlen)) { in ossl_cipher_generic_get_ctx_params()
604 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_NUM); in ossl_cipher_generic_get_ctx_params()
605 if (p != NULL && !OSSL_PARAM_set_uint(p, ctx->num)) { in ossl_cipher_generic_get_ctx_params()
609 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_KEYLEN); in ossl_cipher_generic_get_ctx_params()
610 if (p != NULL && !OSSL_PARAM_set_size_t(p, ctx->keylen)) { in ossl_cipher_generic_get_ctx_params()
614 p = OSSL_PARAM_locate(params, OSSL_CIPHER_PARAM_TLS_MAC); in ossl_cipher_generic_get_ctx_params()
615 if (p != NULL in ossl_cipher_generic_get_ctx_params()
616 && !OSSL_PARAM_set_octet_ptr(p, ctx->tlsmac, ctx->tlsmacsize)) { in ossl_cipher_generic_get_ctx_params()
626 const OSSL_PARAM *p; in ossl_cipher_generic_set_ctx_params() local
631 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_PADDING); in ossl_cipher_generic_set_ctx_params()
632 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
635 if (!OSSL_PARAM_get_uint(p, &pad)) { in ossl_cipher_generic_set_ctx_params()
641 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_USE_BITS); in ossl_cipher_generic_set_ctx_params()
642 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
645 if (!OSSL_PARAM_get_uint(p, &bits)) { in ossl_cipher_generic_set_ctx_params()
651 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS_VERSION); in ossl_cipher_generic_set_ctx_params()
652 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
653 if (!OSSL_PARAM_get_uint(p, &ctx->tlsversion)) { in ossl_cipher_generic_set_ctx_params()
658 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_TLS_MAC_SIZE); in ossl_cipher_generic_set_ctx_params()
659 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
660 if (!OSSL_PARAM_get_size_t(p, &ctx->tlsmacsize)) { in ossl_cipher_generic_set_ctx_params()
665 p = OSSL_PARAM_locate_const(params, OSSL_CIPHER_PARAM_NUM); in ossl_cipher_generic_set_ctx_params()
666 if (p != NULL) { in ossl_cipher_generic_set_ctx_params()
669 if (!OSSL_PARAM_get_uint(p, &num)) { in ossl_cipher_generic_set_ctx_params()