credentials: Added void *params to public_key encrypt() and private_key decrypt() methods
This commit is contained in:
@@ -67,12 +67,13 @@ struct private_key_t {
|
||||
* Decrypt a chunk of data.
|
||||
*
|
||||
* @param scheme expected encryption scheme used
|
||||
* @param params optional parameters required by the specified scheme
|
||||
* @param crypto chunk containing encrypted data
|
||||
* @param plain where to allocate decrypted data
|
||||
* @return TRUE if data decrypted and plaintext allocated
|
||||
*/
|
||||
bool (*decrypt)(private_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t crypto, chunk_t *plain);
|
||||
void *params, chunk_t crypto, chunk_t *plain);
|
||||
|
||||
/**
|
||||
* Get the strength of the key in bits.
|
||||
|
||||
@@ -182,12 +182,13 @@ struct public_key_t {
|
||||
* Encrypt a chunk of data.
|
||||
*
|
||||
* @param scheme encryption scheme to use
|
||||
* @param params optional parameters required by the specified scheme
|
||||
* @param plain chunk containing plaintext data
|
||||
* @param crypto where to allocate encrypted data
|
||||
* @return TRUE if data successfully encrypted
|
||||
*/
|
||||
bool (*encrypt)(public_key_t *this, encryption_scheme_t scheme,
|
||||
chunk_t plain, chunk_t *crypto);
|
||||
void *params, chunk_t plain, chunk_t *crypto);
|
||||
|
||||
/**
|
||||
* Check if two public keys are equal.
|
||||
|
||||
Reference in New Issue
Block a user