OpenVAS Libraries  9.0.1
Functions
openvas_ssh.h File Reference

Go to the source code of this file.

Functions

char * openvas_ssh_pkcs8_decrypt (const char *, const char *)
 Decrypts a base64 encrypted ssh private key. More...
 
char * openvas_ssh_public_from_private (const char *, const char *)
 Exports a base64 encoded public key from a private key and its passphrase. More...
 

Function Documentation

◆ openvas_ssh_pkcs8_decrypt()

char* openvas_ssh_pkcs8_decrypt ( const char *  pkcs8_key,
const char *  passphrase 
)

Decrypts a base64 encrypted ssh private key.

Parameters
[in]pkcs8_keyPKCS#8 encrypted private key.
[in]passphrasePassphrase for the private key.
Returns
Decrypted private key if success, NULL otherwise.

◆ openvas_ssh_public_from_private()

char* openvas_ssh_public_from_private ( const char *  private_key,
const char *  passphrase 
)

Exports a base64 encoded public key from a private key and its passphrase.

Parameters
[in]private_keyPrivate key to export.
[in]passphrasePassphrase for the private key.
Returns
Allocated base64 encoded public key if success, NULL otherwise.