diff options
Diffstat (limited to 'include/pkcs8.h')
-rw-r--r-- | include/pkcs8.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/include/pkcs8.h b/include/pkcs8.h index 7ee0dd864..383b1604a 100644 --- a/include/pkcs8.h +++ b/include/pkcs8.h @@ -49,12 +49,19 @@ namespace PKCS8 { * PKCS #8 Private Key Encoding/Decoding * *************************************************/ BOTAN_DLL void encode(const Private_Key&, Pipe&, X509_Encoding = PEM); -BOTAN_DLL void encrypt_key(const Private_Key&, Pipe&, const std::string&, - const std::string& = "", X509_Encoding = PEM); - BOTAN_DLL std::string PEM_encode(const Private_Key&); -BOTAN_DLL std::string PEM_encode(const Private_Key&, const std::string&, - const std::string& = ""); + +BOTAN_DLL void encrypt_key(const Private_Key&, + Pipe&, + RandomNumberGenerator&, + const std::string&, + const std::string& = "", + X509_Encoding = PEM); + +BOTAN_DLL std::string PEM_encode(const Private_Key&, + RandomNumberGenerator&, + const std::string&, + const std::string& = ""); BOTAN_DLL Private_Key* load_key(DataSource&, RandomNumberGenerator&, const User_Interface&); |