Lines Matching refs:ctlen
579 size_t ctlen = 0, unwraplen = 0, secretlen = 0; in kem_rsa_gen_recover() local
589 && TEST_int_eq(EVP_PKEY_encapsulate(dctx, NULL, &ctlen, NULL, in kem_rsa_gen_recover()
591 && TEST_int_eq(ctlen, secretlen) in kem_rsa_gen_recover()
592 && TEST_int_eq(ctlen, bits / 8) in kem_rsa_gen_recover()
593 && TEST_int_eq(EVP_PKEY_encapsulate(dctx, ct, &ctlen, secret, in kem_rsa_gen_recover()
599 && TEST_int_eq(EVP_PKEY_decapsulate(rctx, NULL, NULL, ct, ctlen), 0) in kem_rsa_gen_recover()
601 ct, ctlen), 1) in kem_rsa_gen_recover()
603 ct, ctlen), 1) in kem_rsa_gen_recover()
608 ctlen = 1; in kem_rsa_gen_recover()
609 if (!TEST_int_eq(EVP_PKEY_encapsulate(dctx, ct, &ctlen, secret, in kem_rsa_gen_recover()
614 ctlen), 0)) in kem_rsa_gen_recover()
666 size_t ctlen = 0, secretlen = 0; in kem_rsa_params() local
689 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, ct, &ctlen, secret, &secretlen), -2) in kem_rsa_params()
697 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, NULL, &ctlen, NULL, NULL), 1) in kem_rsa_params()
698 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, ct, &ctlen, secret, NULL), 1) in kem_rsa_params()
699 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, NULL, &ctlen, NULL, NULL), 1) in kem_rsa_params()
705 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, NULL, &ctlen, NULL, NULL), 1) in kem_rsa_params()
707 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, NULL, &ctlen, NULL, &secretlen), 1) in kem_rsa_params()
709 && TEST_int_eq(EVP_PKEY_encapsulate(pubctx, ct, &ctlen, NULL, NULL), 0) in kem_rsa_params()