Skip to content

Conversation

@Kr0emer
Copy link

@Kr0emer Kr0emer commented Dec 1, 2025

DSA_PrivateToPublic: The serializer only wrote priv, but the generator/modules expect p, g, and priv. The OpenSSL backend also only set priv and never set p/g, so key generation effectively fails. Fix: in DSA_PrivateToPublic::Serialize, emit g, p, and priv in that order. In modules/openssl/module.cpp, parse op.p/op.g/op.priv into BIGNUMs and compute pub = g^priv mod p (e.g., via BN_mod_exp), returning the decimal string so the OpenSSL backend can produce a public key.

KDF_SRTP / KDF_SRTCP: The serializers omitted index, but the generator fills it and the wolfCrypt implementations consume it. Fix: in the corresponding Serialize methods, write out index along with key/salt/kdr/key1-3Size.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant