diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2013-07-17 14:05:19 +0100 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2013-07-17 21:45:00 +0100 |
commit | 97cf1f6c2854a3a955fd7dd3a1f113deba00c9ef (patch) | |
tree | 900ee64624393d5d9721059b2b62c22c2792190b /crypto/modes/modes.h | |
parent | 415ece73015a0e24ea934ecfb857d022952bb65b (diff) | |
download | openssl-97cf1f6c2854a3a955fd7dd3a1f113deba00c9ef.tar.gz |
EVP support for wrapping algorithms.
Add support for key wrap algorithms via EVP interface.
Generalise AES wrap algorithm and add to modes, making existing
AES wrap algorithm a special case.
Move test code to evptests.txt
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r-- | crypto/modes/modes.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h index f18215bb2b..9912550a21 100644 --- a/crypto/modes/modes.h +++ b/crypto/modes/modes.h @@ -133,3 +133,11 @@ typedef struct xts128_context XTS128_CONTEXT; int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char iv[16], const unsigned char *inp, unsigned char *out, size_t len, int enc); + +size_t CRYPTO_128_wrap(void *key, const unsigned char *iv, + unsigned char *out, + const unsigned char *in, size_t inlen, block128_f block); + +size_t CRYPTO_128_unwrap(void *key, const unsigned char *iv, + unsigned char *out, + const unsigned char *in, size_t inlen, block128_f block); |