mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-01-28 03:02:20 +01:00
- Add doxygen documentation for wc_GetPkcs8TraditionalOffset, wc_CreatePKCS8Key, wc_EncryptPKCS8Key, and wc_DecryptPKCS8Key. - Add a new API function, wc_CreateEncryptedPKCS8Key, which handles both creation of an unencrypted PKCS#8 key and the subsequent encrypting of said key. This is a wrapper around TraditionalEnc, which does the same thing. This may become a first-class function at some point (i.e. not a wrapper). TraditionalEnc is left as is since it is used in the wild. - Added a unit test which exercises wc_CreateEncryptedPKCS8Key and wc_DecryptPKCS8Key. Testing wc_CreateEncryptedPKCS8Key inherently also tests TraditionalEnc, wc_CreatePKCS8Key, and wc_EncryptPKCS8Key. - Modified wc_EncryptPKCS8Key to be able to return the required output buffer size via LENGTH_ONLY_E idiom. - Added parameter checking to wc_EncryptPKCS8Key and wc_DecryptPKCS8Key.
The wolfSSL manual is available at: http://www.wolfssl.com/documentation/wolfSSL-Manual.pdf The wolfSSL API guide is available at: https://www.wolfssl.com/doxygen/wolfssl_API.html The wolfCrypt API guide is available at: https://www.wolfssl.com/doxygen/wolfcrypt_API.html