summaryrefslogtreecommitdiffstats
path: root/ncr-pk.h
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-23 08:28:15 +0200
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2010-07-23 08:28:15 +0200
commit8243a470ec9a7e2ffea5f70539c468341100aef8 (patch)
treeafa3038213763be835cdd014703968bc98e3e8cd /ncr-pk.h
parent8383ca063d2473a87e585c20d80138d68d7d4dbf (diff)
downloadcryptodev-linux-8243a470ec9a7e2ffea5f70539c468341100aef8.tar.gz
cryptodev-linux-8243a470ec9a7e2ffea5f70539c468341100aef8.tar.xz
cryptodev-linux-8243a470ec9a7e2ffea5f70539c468341100aef8.zip
Revert "initial support for userspace data."
This reverts commit e7828004e40592c8cffc9235f72440c802905e16.
Diffstat (limited to 'ncr-pk.h')
-rw-r--r--ncr-pk.h21
1 files changed, 8 insertions, 13 deletions
diff --git a/ncr-pk.h b/ncr-pk.h
index aebc430..1180017 100644
--- a/ncr-pk.h
+++ b/ncr-pk.h
@@ -34,20 +34,15 @@ 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 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_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_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 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);
+ const void* signature, size_t signature_size,
+ const void* hash, size_t hash_size, ncr_error_t*);
#endif