Make AES optional and remove "Public API" from headers

This commit is contained in:
Zhi Guan
2023-12-17 16:52:42 +08:00
parent 04cbd81651
commit dc4c21f4ec
14 changed files with 42 additions and 244 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2014-2022 The GmSSL Project. All Rights Reserved.
* Copyright 2014-2023 The GmSSL Project. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the License); you may
* not use this file except in compliance with the License.
@@ -131,6 +131,7 @@ int test_gcm(void)
rand_bytes(aad, sizeof(aad));
rand_bytes(in, sizeof(in));
#ifdef ENABLE_AES
memset(out, 0, sizeof(out));
memset(buf, 0, sizeof(buf));
memset(tag, 0, sizeof(tag));
@@ -151,6 +152,7 @@ int test_gcm(void)
error_print();
return -1;
}
#endif // ENABLE_AES
memset(out, 0, sizeof(out));
memset(buf, 0, sizeof(buf));