summaryrefslogtreecommitdiff
path: root/cipher/cipher-ccm.c
diff options
context:
space:
mode:
Diffstat (limited to 'cipher/cipher-ccm.c')
-rw-r--r--cipher/cipher-ccm.c78
1 files changed, 0 insertions, 78 deletions
diff --git a/cipher/cipher-ccm.c b/cipher/cipher-ccm.c
index 3d5f2209..4d8f8167 100644
--- a/cipher/cipher-ccm.c
+++ b/cipher/cipher-ccm.c
@@ -28,9 +28,6 @@
#include "bufhelp.h"
#include "./cipher-internal.h"
-/* We need a 64 bit type for this code. */
-#ifdef HAVE_U64_TYPEDEF
-
#define set_burn(burn, nburn) do { \
unsigned int __nburn = (nburn); \
@@ -364,78 +361,3 @@ _gcry_cipher_ccm_decrypt (gcry_cipher_hd_t c, unsigned char *outbuf,
return err;
}
-
-#else
-
-/*
- * Provide dummy functions so that we avoid adding too much #ifdefs in
- * cipher.c.
- */
-
-gcry_err_code_t
-_gcry_cipher_ccm_encrypt(gcry_cipher_hd_t c, unsigned char *outbuf,
- size_t outbuflen, const unsigned char *inbuf,
- size_t inbuflen)
-{
- (void)c;
- (void)outbuf;
- (void)outbuflen;
- (void)inbuf;
- (void)inbuflen;
- return GPG_ERR_NOT_SUPPORTED;
-}
-
-gcry_err_code_t
-_gcry_cipher_ccm_decrypt(gcry_cipher_hd_t c, unsigned char *outbuf,
- size_t outbuflen, const unsigned char *inbuf,
- size_t inbuflen)
-{
- (void)c;
- (void)outbuf;
- (void)outbuflen;
- (void)inbuf;
- (void)inbuflen;
- return GPG_ERR_NOT_SUPPORTED;
-}
-
-gcry_err_code_t
-_gcry_cipher_ccm_set_nonce(gcry_cipher_hd_t c, const unsigned char *nonce,
- size_t noncelen)
-{
- (void)c;
- (void)nonce;
- (void)noncelen;
- return GPG_ERR_NOT_SUPPORTED;
-}
-
-gcry_err_code_t
-_gcry_cipher_ccm_authenticate(gcry_cipher_hd_t c, const unsigned char *abuf,
- size_t abuflen)
-{
- (void)c;
- (void)abuf;
- (void)abuflen;
- return GPG_ERR_NOT_SUPPORTED;
-}
-
-gcry_err_code_t
-_gcry_cipher_ccm_get_tag(gcry_cipher_hd_t c, unsigned char *outtag,
- size_t taglen)
-{
- (void)c;
- (void)outtag;
- (void)taglen;
- return GPG_ERR_NOT_SUPPORTED;
-}
-
-gcry_err_code_t
-_gcry_cipher_ccm_check_tag(gcry_cipher_hd_t c, const unsigned char *intag,
- size_t taglen)
-{
- (void)c;
- (void)intag;
- (void)taglen;
- return GPG_ERR_NOT_SUPPORTED;
-}
-
-#endif /*HAVE_U64_TYPEDEF*/