diff options
author | Miloslav Trmač <mitr@redhat.com> | 2010-07-23 17:52:29 +0200 |
---|---|---|
committer | Miloslav Trmač <mitr@redhat.com> | 2010-07-23 17:52:29 +0200 |
commit | 16ace6317db2c47b36b08b0addfe91356151c08d (patch) | |
tree | 3a3c051b43333fabe1116e45e512acadf11da3e8 /crypto/userspace/ncr-pk.h | |
parent | 893a38ffe67459db005bd1c7f129c04508cd015d (diff) | |
parent | d3d66b196cda9b100f3e3e0e742e0c2a76f2751a (diff) | |
download | kernel-crypto-16ace6317db2c47b36b08b0addfe91356151c08d.tar.gz kernel-crypto-16ace6317db2c47b36b08b0addfe91356151c08d.tar.xz kernel-crypto-16ace6317db2c47b36b08b0addfe91356151c08d.zip |
Merge branch 'standalone-master' into standalone-rename
Conflicts:
examples/Makefile
examples/ncr.c
examples/pk.c
examples/speed.c
Diffstat (limited to 'crypto/userspace/ncr-pk.h')
-rw-r--r-- | crypto/userspace/ncr-pk.h | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/crypto/userspace/ncr-pk.h b/crypto/userspace/ncr-pk.h index aebc430906a..11800175c3b 100644 --- a/crypto/userspace/ncr-pk.h +++ b/crypto/userspace/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 |