diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-04-18 14:25:11 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-04-18 14:25:11 +0000 |
commit | 2391681082e70ccc8da23365801ac58713af67c7 (patch) | |
tree | ff5c7b258871e3657160549ca395264b7838ddfd /crypto/modes/modes.h | |
parent | 6386b1b34d955178ff8bf6fe5247667ff63a5dee (diff) | |
download | openssl-2391681082e70ccc8da23365801ac58713af67c7.tar.gz |
Initial untested CCM support via EVP.
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r-- | crypto/modes/modes.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h index c65e7815dd..feacfb77ed 100644 --- a/crypto/modes/modes.h +++ b/crypto/modes/modes.h @@ -108,21 +108,18 @@ void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx); typedef struct ccm128_context CCM128_CONTEXT; void CRYPTO_ccm128_init(CCM128_CONTEXT *ctx, - unsigned int M,unsigned int L,void *key,block128_f block); + unsigned int M, unsigned int L, void *key,block128_f block); int CRYPTO_ccm128_setiv(CCM128_CONTEXT *ctx, - const unsigned char *nonce,size_t nlen,size_t mlen); + const unsigned char *nonce, size_t nlen, size_t mlen); void CRYPTO_ccm128_aad(CCM128_CONTEXT *ctx, - const unsigned char *aad,size_t alen); + const unsigned char *aad, size_t alen); int CRYPTO_ccm128_encrypt(CCM128_CONTEXT *ctx, - const unsigned char *inp, unsigned char *out, - size_t len); + const unsigned char *inp, unsigned char *out, size_t len); int CRYPTO_ccm128_decrypt(CCM128_CONTEXT *ctx, - const unsigned char *inp, unsigned char *out, - size_t len); -size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx,unsigned char *tag,size_t len); + const unsigned char *inp, unsigned char *out, size_t len); +size_t CRYPTO_ccm128_tag(CCM128_CONTEXT *ctx, unsigned char *tag, size_t len); typedef struct xts128_context XTS128_CONTEXT; int CRYPTO_xts128_encrypt(const XTS128_CONTEXT *ctx, const unsigned char *iv, - const unsigned char *inp, unsigned char *out, - size_t len, int enc); + const unsigned char *inp, unsigned char *out, size_t len, int enc); |