aboutsummaryrefslogtreecommitdiffstats
path: root/src/config
diff options
context:
space:
mode:
authorMichael Brown <mcb30@ipxe.org>2024-08-14 13:02:22 +0100
committerMichael Brown <mcb30@ipxe.org>2024-08-14 13:04:01 +0100
commit998edc6ec515a6c9b0635d728b1cc51253e7dd7f (patch)
tree06044bb91ae26686e7d9ce78289b5ccd75d6e895 /src/config
parent3b4d0cb555a01df8b56f422d9d17522ae60e17be (diff)
downloadipxe-998edc6ec515a6c9b0635d728b1cc51253e7dd7f.tar.gz
[crypto] Add OID-identified algorithms for AES ciphers
Extend the definition of an ASN.1 OID-identified algorithm to include a potential cipher suite, and add identifiers for AES-CBC and AES-GCM. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r--src/config/config_crypto.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/config/config_crypto.c b/src/config/config_crypto.c
index 5211224ab..f118a9709 100644
--- a/src/config/config_crypto.c
+++ b/src/config/config_crypto.c
@@ -88,6 +88,16 @@ REQUIRE_OBJECT ( oid_sha512_256 );
REQUIRE_OBJECT ( oid_x25519 );
#endif
+/* AES-CBC */
+#if defined ( CRYPTO_CIPHER_AES_CBC )
+REQUIRE_OBJECT ( oid_aes_cbc );
+#endif
+
+/* AES-GCM */
+#if defined ( CRYPTO_CIPHER_AES_GCM )
+REQUIRE_OBJECT ( oid_aes_gcm );
+#endif
+
/* RSA and MD5 */
#if defined ( CRYPTO_PUBKEY_RSA ) && defined ( CRYPTO_DIGEST_MD5 )
REQUIRE_OBJECT ( rsa_md5 );