Updated gcrypt plugin to the new builder API
This commit is contained in:
@@ -21,10 +21,11 @@
|
||||
#ifndef GCRYPT_RSA_PUBLIC_KEY_H_
|
||||
#define GCRYPT_RSA_PUBLIC_KEY_H_
|
||||
|
||||
typedef struct gcrypt_rsa_public_key_t gcrypt_rsa_public_key_t;
|
||||
|
||||
#include <credentials/builder.h>
|
||||
#include <credentials/keys/public_key.h>
|
||||
|
||||
typedef struct gcrypt_rsa_public_key_t gcrypt_rsa_public_key_t;
|
||||
|
||||
/**
|
||||
* public_key_t implementation of RSA algorithm using libgcrypt.
|
||||
*/
|
||||
@@ -37,11 +38,15 @@ struct gcrypt_rsa_public_key_t {
|
||||
};
|
||||
|
||||
/**
|
||||
* Create the builder for a public key.
|
||||
* Load a RSA public key using gcrypt.
|
||||
*
|
||||
* Accepts BUILD_RSA_* components.
|
||||
*
|
||||
* @param type type of the key, must be KEY_RSA
|
||||
* @return builder instance
|
||||
* @param args builder_part_t argument list
|
||||
* @return loaded key, NULL on failure
|
||||
*/
|
||||
builder_t *gcrypt_rsa_public_key_builder(key_type_t type);
|
||||
gcrypt_rsa_public_key_t *gcrypt_rsa_public_key_load(key_type_t type,
|
||||
va_list args);
|
||||
|
||||
#endif /** GCRYPT_RSA_PUBLIC_KEY_H_ @}*/
|
||||
|
||||
Reference in New Issue
Block a user