Merge pull request #3047 from SparkiDev/curve448_dox

Add Doxygen documentation for Curve448/Ed448
This commit is contained in:
toddouska
2020-06-18 13:05:59 -07:00
committed by GitHub
8 changed files with 2532 additions and 332 deletions
+1 -1
View File
@@ -61,7 +61,7 @@ int wc_ed25519_make_public(ed25519_key* key, unsigned char* pubKey,
ge_p3 A;
#endif
if (key == NULL || pubKeySz != ED25519_PUB_KEY_SIZE)
if (key == NULL || pubKey == NULL || pubKeySz != ED25519_PUB_KEY_SIZE)
ret = BAD_FUNC_ARG;
if (ret == 0)
+1 -1
View File
@@ -67,7 +67,7 @@ int wc_ed448_make_public(ed448_key* key, unsigned char* pubKey, word32 pubKeySz)
byte az[ED448_PRV_KEY_SIZE];
ge448_p2 A;
if ((key == NULL) || (pubKeySz != ED448_PUB_KEY_SIZE)) {
if ((key == NULL) || (pubKey == NULL) || (pubKeySz != ED448_PUB_KEY_SIZE)) {
ret = BAD_FUNC_ARG;
}