Added support for different encryption schemes to private/public keys
This commit is contained in:
@@ -171,7 +171,8 @@ METHOD(private_key_t, sign, bool,
|
||||
}
|
||||
|
||||
METHOD(private_key_t, decrypt, bool,
|
||||
private_openssl_ec_private_key_t *this, chunk_t crypto, chunk_t *plain)
|
||||
private_openssl_ec_private_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t crypto, chunk_t *plain)
|
||||
{
|
||||
DBG1(DBG_LIB, "EC private key decryption not implemented");
|
||||
return FALSE;
|
||||
|
||||
@@ -169,7 +169,8 @@ METHOD(public_key_t, verify, bool,
|
||||
}
|
||||
|
||||
METHOD(public_key_t, encrypt, bool,
|
||||
private_openssl_ec_public_key_t *this, chunk_t crypto, chunk_t *plain)
|
||||
private_openssl_ec_public_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t crypto, chunk_t *plain)
|
||||
{
|
||||
DBG1(DBG_LIB, "EC public key encryption not implemented");
|
||||
return FALSE;
|
||||
|
||||
@@ -166,7 +166,8 @@ METHOD(private_key_t, sign, bool,
|
||||
}
|
||||
|
||||
METHOD(private_key_t, decrypt, bool,
|
||||
private_openssl_rsa_private_key_t *this, chunk_t crypto, chunk_t *plain)
|
||||
private_openssl_rsa_private_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t crypto, chunk_t *plain)
|
||||
{
|
||||
DBG1(DBG_LIB, "RSA private key decryption not implemented");
|
||||
return FALSE;
|
||||
|
||||
@@ -148,7 +148,8 @@ METHOD(public_key_t, verify, bool,
|
||||
}
|
||||
|
||||
METHOD(public_key_t, encrypt, bool,
|
||||
private_openssl_rsa_public_key_t *this, chunk_t crypto, chunk_t *plain)
|
||||
private_openssl_rsa_public_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t crypto, chunk_t *plain)
|
||||
{
|
||||
DBG1(DBG_LIB, "RSA public key encryption not implemented");
|
||||
return FALSE;
|
||||
|
||||
Reference in New Issue
Block a user