Ticket #62132: 0001-cipher-proto-remove-forward-typedef-of-cipher_bulk_MP.patch
File 0001-cipher-proto-remove-forward-typedef-of-cipher_bulk_MP.patch, 4.3 KB (added by ballapete (Peter "Pete" Dyballa), 4 years ago) |
---|
-
cipher/arcfour.c
old new 30 30 #include "types.h" 31 31 #include "g10lib.h" 32 32 #include "cipher.h" 33 #include "cipher-internal.h" 33 34 34 35 /* USE_AMD64_ASM indicates whether to use AMD64 assembly code. */ 35 36 #undef USE_AMD64_ASM -
cipher/gost28147.c
old new 35 35 #include "cipher.h" 36 36 #include "mac-internal.h" 37 37 #include "bufhelp.h" 38 #include "cipher-internal.h" 38 39 39 40 #include "gost.h" 40 41 #include "gost-sb.h" -
cipher/idea.c
old new 48 48 #include "types.h" /* for byte and u32 typedefs */ 49 49 #include "g10lib.h" 50 50 #include "cipher.h" 51 #include "cipher-internal.h" 51 52 52 53 53 54 #define IDEA_KEYSIZE 16 -
cipher/mac-cmac.c
old new 69 69 { 70 70 gcry_err_code_t err; 71 71 gcry_cipher_hd_t hd; 72 int secure = (h->magic == CTX_MA GIC_SECURE);72 int secure = (h->magic == CTX_MAC_MAGIC_SECURE); 73 73 int cipher_algo; 74 74 unsigned int flags; 75 75 -
cipher/mac-gmac.c
old new 54 54 { 55 55 gcry_err_code_t err; 56 56 gcry_cipher_hd_t hd; 57 int secure = (h->magic == CTX_MA GIC_SECURE);57 int secure = (h->magic == CTX_MAC_MAGIC_SECURE); 58 58 int cipher_algo; 59 59 unsigned int flags; 60 60 -
cipher/mac-hmac.c
old new 107 107 { 108 108 gcry_err_code_t err; 109 109 gcry_md_hd_t hd; 110 int secure = (h->magic == CTX_MA GIC_SECURE);110 int secure = (h->magic == CTX_MAC_MAGIC_SECURE); 111 111 unsigned int flags; 112 112 int md_algo; 113 113 -
cipher/mac-internal.h
old new 39 39 40 40 41 41 /* Magic values for the context structure. */ 42 #define CTX_MA GIC_NORMAL 0x59d9b8af43 #define CTX_MA GIC_SECURE 0x12c27cd042 #define CTX_MAC_MAGIC_NORMAL 0x59d9b8af 43 #define CTX_MAC_MAGIC_SECURE 0x12c27cd0 44 44 45 45 46 46 /* MAC module functions. */ -
cipher/mac-poly1305.c
old new 45 45 poly1305mac_open (gcry_mac_hd_t h) 46 46 { 47 47 struct poly1305mac_context_s *mac_ctx; 48 int secure = (h->magic == CTX_MA GIC_SECURE);48 int secure = (h->magic == CTX_MAC_MAGIC_SECURE); 49 49 unsigned int flags = (secure ? GCRY_CIPHER_SECURE : 0); 50 50 gcry_err_code_t err; 51 51 int cipher_algo; -
cipher/mac.c
old new 517 517 if (!h) 518 518 return gpg_err_code_from_syserror (); 519 519 520 h->magic = secure ? CTX_MA GIC_SECURE : CTX_MAGIC_NORMAL;520 h->magic = secure ? CTX_MAC_MAGIC_SECURE : CTX_MAC_MAGIC_NORMAL; 521 521 h->spec = spec; 522 522 h->algo = algo; 523 523 h->gcry_ctx = ctx; -
cipher/rfc2268.c
old new 35 35 #include "g10lib.h" 36 36 #include "types.h" 37 37 #include "cipher.h" 38 #include "cipher-internal.h" 38 39 39 40 #define RFC2268_BLOCKSIZE 8 40 41 -
cipher/salsa20.c
old new 39 39 #include "g10lib.h" 40 40 #include "cipher.h" 41 41 #include "bufhelp.h" 42 #include "cipher-internal.h" 42 43 43 44 44 45 /* USE_AMD64 indicates whether to compile with AMD64 code. */ -
cipher/seed.c
old new 30 30 #include "g10lib.h" 31 31 #include "cipher.h" 32 32 #include "bufhelp.h" 33 #include "cipher-internal.h" 33 34 34 35 #define NUMKC 16 35 36 -
src/cipher-proto.h
old new 129 129 * 130 130 */ 131 131 132 typedef struct cipher_bulk_ops cipher_bulk_ops_t;132 struct cipher_bulk_ops; 133 133 134 134 /* Type for the cipher_setkey function. */ 135 135 typedef gcry_err_code_t (*gcry_cipher_setkey_t) (void *c, 136 136 const unsigned char *key, 137 137 unsigned keylen, 138 cipher_bulk_ops_t*bulk_ops);138 struct cipher_bulk_ops *bulk_ops); 139 139 140 140 /* Type for the cipher_encrypt function. */ 141 141 typedef unsigned int (*gcry_cipher_encrypt_t) (void *c,