Skip to content

OpenSSL 3.x backend missing rsa_keygen_prime callback — RSA KeyGen KAT (FIPS186-5) not supported #109

@ankurmehta94-rgb

Description

@ankurmehta94-rgb

Version: acvp-parser v2.1.8.
Library: OpenSSL: 3.0.x
ACVP vector revision: FIPS186-5 (RSA KeyGen)

Backend file: backends/backend_openssl3.c
Problem:
The OpenSSL 3.x backend has rsa_keygen_prime and rsa_keygen_prov_prime set to NULL:
static struct rsa_backend openssl_rsa = {
  openssl_rsa_keygen,   // rsa_keygen ✅
  openssl_rsa_siggen,   // rsa_siggen ✅
  openssl_rsa_sigver,   // rsa_sigver ✅
  NULL,          // rsa_keygen_prime ❌ NOT IMPLEMENTED
  NULL,          // rsa_keygen_prov_prime ❌ NOT IMPLEMENTED
  ...
};
When processing FIPS186-5 RSA KeyGen vectors with testType: "KAT", the parser receives e, p, q and must compute n and d. Since the callback is NULL, all KAT test groups fail with "No callback defined".

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions