Skip to content

Commit

Permalink
changed to OpenSSL coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
feventura committed Dec 11, 2023
1 parent 67254ca commit c72ccc5
Show file tree
Hide file tree
Showing 10 changed files with 1,704 additions and 1,575 deletions.
107 changes: 43 additions & 64 deletions oqsprov/oqs_decode_der2key.c
Original file line number Diff line number Diff line change
Expand Up @@ -731,68 +731,47 @@ MAKE_DECODER(, "rsa3072_sphincsshake128fsimple", rsa3072_sphincsshake128fsimple,
MAKE_DECODER(, "rsa3072_sphincsshake128fsimple", rsa3072_sphincsshake128fsimple,
oqsx, SubjectPublicKeyInfo);

MAKE_DECODER(, "dilithium3_rsa3072", dilithium3_rsa3072,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_rsa3072", dilithium3_rsa3072,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_p256", dilithium3_p256,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_p256", dilithium3_p256,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "falcon512_p256", falcon512_p256,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "falcon512_p256", falcon512_p256,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium5_p384", dilithium5_p384,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium5_p384", dilithium5_p384,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_bp256", dilithium3_bp256,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_bp256", dilithium3_bp256,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_ed25519", dilithium3_ed25519,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_ed25519", dilithium3_ed25519,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium5_bp384", dilithium5_bp384,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium5_bp384", dilithium5_bp384,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium5_ed448", dilithium5_ed448,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium5_ed448", dilithium5_ed448,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "falcon512_bp256", falcon512_bp256,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "falcon512_bp256", falcon512_bp256,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "falcon512_ed25519", falcon512_ed25519,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "falcon512_ed25519", falcon512_ed25519,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_pss3072", dilithium3_pss3072,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_pss3072", dilithium3_pss3072,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_pss2048", dilithium2_pss2048,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_pss2048", dilithium2_pss2048,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_rsa2048", dilithium2_rsa2048,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_rsa2048", dilithium2_rsa2048,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_ed25519", dilithium2_ed25519,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_ed25519", dilithium2_ed25519,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_p256", dilithium2_p256,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_p256", dilithium2_p256,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_bp256", dilithium2_bp256,
oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_bp256", dilithium2_bp256,
oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_rsa3072", dilithium3_rsa3072, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_rsa3072", dilithium3_rsa3072, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_p256", dilithium3_p256, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_p256", dilithium3_p256, oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "falcon512_p256", falcon512_p256, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "falcon512_p256", falcon512_p256, oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium5_p384", dilithium5_p384, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium5_p384", dilithium5_p384, oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_bp256", dilithium3_bp256, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_bp256", dilithium3_bp256, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_ed25519", dilithium3_ed25519, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_ed25519", dilithium3_ed25519, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium5_bp384", dilithium5_bp384, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium5_bp384", dilithium5_bp384, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium5_ed448", dilithium5_ed448, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium5_ed448", dilithium5_ed448, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "falcon512_bp256", falcon512_bp256, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "falcon512_bp256", falcon512_bp256, oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "falcon512_ed25519", falcon512_ed25519, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "falcon512_ed25519", falcon512_ed25519, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium3_pss3072", dilithium3_pss3072, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium3_pss3072", dilithium3_pss3072, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_pss2048", dilithium2_pss2048, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_pss2048", dilithium2_pss2048, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_rsa2048", dilithium2_rsa2048, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_rsa2048", dilithium2_rsa2048, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_ed25519", dilithium2_ed25519, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_ed25519", dilithium2_ed25519, oqsx,
SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_p256", dilithium2_p256, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_p256", dilithium2_p256, oqsx, SubjectPublicKeyInfo);
MAKE_DECODER(, "dilithium2_bp256", dilithium2_bp256, oqsx, PrivateKeyInfo);
MAKE_DECODER(, "dilithium2_bp256", dilithium2_bp256, oqsx,
SubjectPublicKeyInfo);
///// OQS_TEMPLATE_FRAGMENT_DECODER_MAKE_END
Loading

0 comments on commit c72ccc5

Please sign in to comment.