summaryrefslogtreecommitdiffstats
path: root/ncr-pk.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-21 14:03:58 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-21 16:40:01 +0200
commite7828004e40592c8cffc9235f72440c802905e16 (patch)
treec46f4aba9a4f1e8014492cd835fce81d7e07017e /ncr-pk.h
parent56eb45f752baa978a9ea3573faee44857678597d (diff)
downloadcryptodev-linux-e7828004e40592c8cffc9235f72440c802905e16.tar.gz
cryptodev-linux-e7828004e40592c8cffc9235f72440c802905e16.tar.xz
cryptodev-linux-e7828004e40592c8cffc9235f72440c802905e16.zip
initial support for userspace data.
Diffstat (limited to 'ncr-pk.h')
-rw-r--r--ncr-pk.h21
1 files changed, 13 insertions, 8 deletions
diff --git a/ncr-pk.h b/ncr-pk.h
index 1180017..aebc430 100644
--- a/ncr-pk.h
+++ b/ncr-pk.h
@@ -34,15 +34,20 @@ int ncr_pk_cipher_init(ncr_algorithm_t algo,
struct ncr_pk_ctx* ctx, struct ncr_key_params_st* params,
struct key_item_st *key);
void ncr_pk_cipher_deinit(struct ncr_pk_ctx* ctx);
-int ncr_pk_cipher_encrypt(const struct ncr_pk_ctx* ctx, const void* input,
- size_t input_size, void* output, size_t *output_size);
-int ncr_pk_cipher_decrypt(const struct ncr_pk_ctx* ctx, const void* input,
- size_t input_size, void* output, size_t *output_size);
-int ncr_pk_cipher_sign(const struct ncr_pk_ctx* ctx, const void* input,
- size_t input_size, void* output, size_t *output_size);
+int ncr_pk_cipher_encrypt(const struct ncr_pk_ctx* ctx,
+ const struct scatterlist* isg, unsigned int isg_cnt, size_t isg_size,
+ struct scatterlist *osg, unsigned int osg_cnt, size_t* osg_size);
+int ncr_pk_cipher_decrypt(const struct ncr_pk_ctx* ctx,
+ const struct scatterlist* isg, unsigned int isg_cnt, size_t isg_size,
+ struct scatterlist *osg, unsigned int osg_cnt, size_t* osg_size);
+
+int ncr_pk_cipher_sign(const struct ncr_pk_ctx* ctx,
+ const struct scatterlist* isg, unsigned int isg_cnt, size_t isg_size,
+ struct scatterlist *osg, unsigned int osg_cnt, size_t* osg_size);
+
int ncr_pk_cipher_verify(const struct ncr_pk_ctx* ctx,
- const void* signature, size_t signature_size,
- const void* hash, size_t hash_size, ncr_error_t*);
+ const struct scatterlist* sign_sg, unsigned int sign_sg_cnt, size_t sign_sg_size,
+ const void* hash, size_t hash_size, ncr_error_t* err);
#endif