Lines Matching refs:secretlen
525 size_t secretlen = (EC_GROUP_get_degree(group) + 7) / 8; in generate_ecdhkm() local
527 if (secretlen != secretsz || secretlen > maxout) { in generate_ecdhkm()
534 return ECDH_compute_key(out, secretlen, EC_KEY_get0_public_key(peer), in generate_ecdhkm()
644 unsigned char *secret, size_t *secretlen) in dhkem_encap() argument
654 if (enclen == NULL && secretlen == NULL) in dhkem_encap()
658 if (secretlen != NULL) in dhkem_encap()
659 *secretlen = info->Nsecret; in dhkem_encap()
663 if (*secretlen < info->Nsecret) { in dhkem_encap()
697 *secretlen = info->Nsecret; in dhkem_encap()
721 unsigned char *secret, size_t *secretlen, in dhkem_decap() argument
732 *secretlen = info->Nsecret; in dhkem_decap()
736 if (*secretlen < info->Nsecret) { in dhkem_decap()
761 *secretlen = info->Nsecret; in dhkem_decap()
769 unsigned char *secret, size_t *secretlen) in eckem_encapsulate() argument
775 return dhkem_encap(ctx, out, outlen, secret, secretlen); in eckem_encapsulate()