diff options
author | Andy Polyakov <appro@openssl.org> | 2010-07-09 14:10:51 +0000 |
---|---|---|
committer | Andy Polyakov <appro@openssl.org> | 2010-07-09 14:10:51 +0000 |
commit | 6acb4ff3893c2f4f9aca81798b6abec379370df0 (patch) | |
tree | 604d651c57e595305dde99368665d17ba53d5b75 /crypto/modes/modes.h | |
parent | 874a3757aff5ede013a825eea4b82a3e8ba96d34 (diff) |
gcm128.c: API modification and readability improvements,
add ghash benchmark to apps/speed.c.
Diffstat (limited to 'crypto/modes/modes.h')
-rw-r--r-- | crypto/modes/modes.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/crypto/modes/modes.h b/crypto/modes/modes.h index 10ce57667a..1087646d2d 100644 --- a/crypto/modes/modes.h +++ b/crypto/modes/modes.h @@ -82,15 +82,17 @@ size_t CRYPTO_nistcts128_decrypt(const unsigned char *in, unsigned char *out, typedef struct gcm128_context GCM128_CONTEXT; -void CRYPTO_gcm128_init(GCM128_CONTEXT *ctx, void *key, block128_f block); +GCM128_CONTEXT *CRYPTO_gcm128_new(void *key, block128_f block); void CRYPTO_gcm128_setiv(GCM128_CONTEXT *ctx, const unsigned char *iv, - size_t len); + size_t len); void CRYPTO_gcm128_aad(GCM128_CONTEXT *ctx, const unsigned char *aad, - size_t len); + size_t len); void CRYPTO_gcm128_encrypt(GCM128_CONTEXT *ctx, - const unsigned char *in, unsigned char *out, - size_t len); + const unsigned char *in, unsigned char *out, + size_t len); void CRYPTO_gcm128_decrypt(GCM128_CONTEXT *ctx, - const unsigned char *in, unsigned char *out, - size_t len); -void CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx); + const unsigned char *in, unsigned char *out, + size_t len); +int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx,const unsigned char *tag, + size_t len); +void CRYPTO_gcm128_release(GCM128_CONTEXT *ctx); |