diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-11-24 16:02:25 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2014-12-03 10:11:37 +0100 |
commit | 7d1308f29b7512a2913a031f5baccab65f68073d (patch) | |
tree | 527db56885b696e091ee4df3a426a04ecd99c13d /lib/includes/gnutls | |
parent | 7d65b1c321576c5de73ffcd574eaeb69c492a983 (diff) | |
download | gnutls-7d1308f29b7512a2913a031f5baccab65f68073d.tar.gz |
Modified crypto backend to accomodate for the CCM ciphersuites
Diffstat (limited to 'lib/includes/gnutls')
-rw-r--r-- | lib/includes/gnutls/crypto.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lib/includes/gnutls/crypto.h b/lib/includes/gnutls/crypto.h index e7d0d324d8..70ba3eaa7a 100644 --- a/lib/includes/gnutls/crypto.h +++ b/lib/includes/gnutls/crypto.h @@ -66,21 +66,21 @@ typedef struct api_aead_cipher_hd_st *gnutls_aead_cipher_hd_t; int gnutls_aead_cipher_init(gnutls_aead_cipher_hd_t * handle, gnutls_cipher_algorithm_t cipher, - const gnutls_datum_t * key, - unsigned tag_size); -int gnutls_aead_cipher_decrypt(gnutls_aead_cipher_hd_t handle, - const void *ciphertext, - size_t ciphertextlen, void *text, - size_t *textlen); -int gnutls_aead_cipher_encrypt(gnutls_aead_cipher_hd_t handle, - const void *text, size_t textlen, - void *ciphertext, size_t *ciphertextlen); - + const gnutls_datum_t * key); int -gnutls_aead_cipher_set_nonce(gnutls_aead_cipher_hd_t handle, void *nonce, size_t nonce_len); - -int gnutls_aead_cipher_add_auth(gnutls_aead_cipher_hd_t handle, - const void *text, size_t text_size); +gnutls_aead_cipher_decrypt(gnutls_aead_cipher_hd_t handle, + const void *nonce, size_t nonce_len, + const void *auth, size_t auth_len, + size_t tag_size, + const void *ctext, size_t ctext_len, + void *ptext, size_t *ptext_len); +int +gnutls_aead_cipher_encrypt(gnutls_aead_cipher_hd_t handle, + const void *nonce, size_t nonce_len, + const void *auth, size_t auth_len, + size_t tag_size, + const void *ptext, size_t ptext_len, + void *ctext, size_t *ctext_len); void gnutls_aead_cipher_deinit(gnutls_aead_cipher_hd_t handle); |