/external/dropbear/libtomcrypt/src/encauth/gcm/ |
gcm_done.c | 14 GCM implementation, Terminate the stream, by Tom St Denis 21 Terminate a GCM stream 22 @param gcm The GCM state 27 int gcm_done(gcm_state *gcm, 33 LTC_ARGCHK(gcm != NULL); 37 if (gcm->buflen > 16 || gcm->buflen < 0) { 41 if ((err = cipher_is_valid(gcm->cipher)) != CRYPT_OK) { 46 if (gcm->mode != GCM_MODE_TEXT) [all...] |
gcm_add_aad.c | 14 GCM implementation, Add AAD data to the stream, by Tom St Denis 21 Add AAD to the GCM state 22 @param gcm The GCM state 23 @param adata The additional authentication data to add to the GCM state 27 int gcm_add_aad(gcm_state *gcm, 36 LTC_ARGCHK(gcm != NULL); 41 if (gcm->buflen > 16 || gcm->buflen < 0) { 45 if ((err = cipher_is_valid(gcm->cipher)) != CRYPT_OK) [all...] |
gcm_reset.c | 14 GCM implementation, reset a used state so it can accept IV data, by Tom St Denis 21 Reset a GCM state to as if you just called gcm_init(). This saves the initialization time. 22 @param gcm The GCM state to reset 25 int gcm_reset(gcm_state *gcm) 27 LTC_ARGCHK(gcm != NULL); 29 zeromem(gcm->buf, sizeof(gcm->buf)); 30 zeromem(gcm->X, sizeof(gcm->X)) [all...] |
gcm_process.c | 14 GCM implementation, process message data, by Tom St Denis 21 Process plaintext/ciphertext through GCM 22 @param gcm The GCM state 29 int gcm_process(gcm_state *gcm, 38 LTC_ARGCHK(gcm != NULL); 44 if (gcm->buflen > 16 || gcm->buflen < 0) { 48 if ((err = cipher_is_valid(gcm->cipher)) != CRYPT_OK) { 53 if (gcm->mode == GCM_MODE_AAD) [all...] |
gcm_add_iv.c | 14 GCM implementation, add IV data to the state, by Tom St Denis 21 Add IV data to the GCM state 22 @param gcm The GCM state 27 int gcm_add_iv(gcm_state *gcm, 33 LTC_ARGCHK(gcm != NULL); 39 if (gcm->mode != GCM_MODE_IV) { 43 if (gcm->buflen >= 16 || gcm->buflen < 0) { 47 if ((err = cipher_is_valid(gcm->cipher)) != CRYPT_OK) [all...] |
gcm_init.c | 14 GCM implementation, initialize state, by Tom St Denis 21 Initialize a GCM state 22 @param gcm The GCM state to initialize 28 int gcm_init(gcm_state *gcm, int cipher, 37 LTC_ARGCHK(gcm != NULL); 55 if ((err = cipher_descriptor[cipher].setup(key, keylen, 0, &gcm->K)) != CRYPT_OK) { 61 if ((err = cipher_descriptor[cipher].ecb_encrypt(B, gcm->H, &gcm->K)) != CRYPT_OK) { 66 zeromem(gcm->buf, sizeof(gcm->buf)) [all...] |
gcm_mult_h.c | 14 GCM implementation, do the GF mult, by Tom St Denis 20 GCM multiply by H 21 @param gcm The GCM state which holds the H value 24 void gcm_mult_h(gcm_state *gcm, unsigned char *I) 30 asm("movdqa (%0),%%xmm0"::"r"(&gcm->PC[0][I[0]][0])); 32 asm("pxor (%0),%%xmm0"::"r"(&gcm->PC[x][I[x]][0])); 36 XMEMCPY(T, &gcm->PC[0][I[0]][0], 16); 40 *((LTC_FAST_TYPE *)(T + y)) ^= *((LTC_FAST_TYPE *)(&gcm->PC[x][I[x]][y])); 44 T[y] ^= gcm->PC[x][I[x]][y] [all...] |
gcm_memory.c | 14 GCM implementation, process a packet, by Tom St Denis 21 Process an entire GCM packet in one call. 47 gcm_state *gcm; local 69 orig = gcm = XMALLOC(sizeof(*gcm)); 71 orig = gcm = XMALLOC(sizeof(*gcm) + 16); 73 if (gcm == NULL) { 77 /* Force GCM to be on a multiple of 16 so we can use 128-bit aligned operations 78 * note that we only modify gcm and keep orig intact. This code is not portabl [all...] |
gcm_gf_mult.c | 14 GCM implementation, do the GF mult, by Tom St Denis 78 GCM GF multiplier (internal use only) bitserial 112 GCM GF multiplier (internal use only) word oriented 218 /* $Source: /cvs/libtom/libtomcrypt/src/encauth/gcm/gcm_gf_mult.c,v $ */
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/gcm/ |
GCMMultiplier.java | 1 package org.bouncycastle.crypto.modes.gcm;
|
GCMUtil.java | 1 package org.bouncycastle.crypto.modes.gcm;
|
Tables8kGCMMultiplier.java | 1 package org.bouncycastle.crypto.modes.gcm;
|
/external/dropbear/libtomcrypt/ |
Android.mk | 17 src/encauth/eax/eax_test.c src/encauth/gcm/gcm_add_aad.c src/encauth/gcm/gcm_add_iv.c \ 18 src/encauth/gcm/gcm_done.c src/encauth/gcm/gcm_gf_mult.c src/encauth/gcm/gcm_init.c \ 19 src/encauth/gcm/gcm_memory.c src/encauth/gcm/gcm_mult_h.c src/encauth/gcm/gcm_process.c \ 20 src/encauth/gcm/gcm_reset.c src/encauth/gcm/gcm_test.c src/encauth/ocb/ocb_decrypt.c [all...] |
makefile.msvc | 15 src/encauth/eax/eax_test.obj src/encauth/gcm/gcm_add_aad.obj src/encauth/gcm/gcm_add_iv.obj \ 16 src/encauth/gcm/gcm_done.obj src/encauth/gcm/gcm_gf_mult.obj src/encauth/gcm/gcm_init.obj \ 17 src/encauth/gcm/gcm_memory.obj src/encauth/gcm/gcm_mult_h.obj src/encauth/gcm/gcm_process.obj \ 18 src/encauth/gcm/gcm_reset.obj src/encauth/gcm/gcm_test.obj src/encauth/ocb/ocb_decrypt.obj [all...] |
Makefile.in | 108 src/encauth/eax/eax_test.o src/encauth/gcm/gcm_add_aad.o src/encauth/gcm/gcm_add_iv.o \ 109 src/encauth/gcm/gcm_done.o src/encauth/gcm/gcm_gf_mult.o src/encauth/gcm/gcm_init.o \ 110 src/encauth/gcm/gcm_memory.o src/encauth/gcm/gcm_mult_h.o src/encauth/gcm/gcm_process.o \ 111 src/encauth/gcm/gcm_reset.o src/encauth/gcm/gcm_test.o src/encauth/ocb/ocb_decrypt.o [all...] |
makefile.icc | 105 src/encauth/eax/eax_test.o src/encauth/gcm/gcm_add_aad.o src/encauth/gcm/gcm_add_iv.o \ 106 src/encauth/gcm/gcm_done.o src/encauth/gcm/gcm_gf_mult.o src/encauth/gcm/gcm_init.o \ 107 src/encauth/gcm/gcm_memory.o src/encauth/gcm/gcm_mult_h.o src/encauth/gcm/gcm_process.o \ 108 src/encauth/gcm/gcm_reset.o src/encauth/gcm/gcm_test.o src/encauth/ocb/ocb_decrypt.o [all...] |
makefile.shared | 110 src/encauth/eax/eax_test.o src/encauth/gcm/gcm_add_aad.o src/encauth/gcm/gcm_add_iv.o \ 111 src/encauth/gcm/gcm_done.o src/encauth/gcm/gcm_gf_mult.o src/encauth/gcm/gcm_init.o \ 112 src/encauth/gcm/gcm_memory.o src/encauth/gcm/gcm_mult_h.o src/encauth/gcm/gcm_process.o \ 113 src/encauth/gcm/gcm_reset.o src/encauth/gcm/gcm_test.o src/encauth/ocb/ocb_decrypt.o [all...] |
makefile.unix | 51 src/encauth/eax/eax_test.o src/encauth/gcm/gcm_add_aad.o src/encauth/gcm/gcm_add_iv.o \ 52 src/encauth/gcm/gcm_done.o src/encauth/gcm/gcm_gf_mult.o src/encauth/gcm/gcm_init.o \ 53 src/encauth/gcm/gcm_memory.o src/encauth/gcm/gcm_mult_h.o src/encauth/gcm/gcm_process.o \ 54 src/encauth/gcm/gcm_reset.o src/encauth/gcm/gcm_test.o src/encauth/ocb/ocb_decrypt.o [all...] |
/external/dropbear/libtomcrypt/notes/ |
gcm_tv.txt | 0 GCM Test Vectors. Uses the 00010203...NN-1 pattern for nonce/header/plaintext/key. The outputs 5 GCM-aes (16 byte key) 40 GCM-rc6 (16 byte key) 75 GCM-safer+ (16 byte key) 110 GCM-twofish (16 byte key) 145 GCM-noekeon (16 byte key) 180 GCM-anubis (16 byte key)
|
/external/dropbear/libtomcrypt/src/headers/ |
tomcrypt_mac.h | 220 /* table shared between GCM and LRW */ 244 mode, /* mode the GCM code is in */ 259 void gcm_mult_h(gcm_state *gcm, unsigned char *I); 261 int gcm_init(gcm_state *gcm, int cipher, 264 int gcm_reset(gcm_state *gcm); 266 int gcm_add_iv(gcm_state *gcm, 269 int gcm_add_aad(gcm_state *gcm, 272 int gcm_process(gcm_state *gcm, 277 int gcm_done(gcm_state *gcm,
|
/external/bouncycastle/src/main/java/org/bouncycastle/crypto/modes/ |
GCMBlockCipher.java | 7 import org.bouncycastle.crypto.modes.gcm.GCMMultiplier; 8 import org.bouncycastle.crypto.modes.gcm.Tables8kGCMMultiplier; 16 * Implements the Galois/Counter mode (GCM) detailed in 77 return cipher.getAlgorithmName() + "/GCM"; 113 throw new IllegalArgumentException("invalid parameters passed to GCM"); 291 throw new InvalidCipherTextException("mac check in GCM failed");
|
/external/icu4c/tools/genpname/ |
SyntheticPropertyAliases.txt | 32 gcm ; General_Category_Mask
|
/external/dropbear/libtomcrypt/testprof/ |
x86_prof.c | 1384 gcm_state gcm local [all...] |
/external/bouncycastle/ |
bouncycastle.config | 245 org/bouncycastle/crypto/modes/gcm/BasicGCMExponentiator.java \ 246 org/bouncycastle/crypto/modes/gcm/BasicGCMMultiplier.java \ 247 org/bouncycastle/crypto/modes/gcm/GCMExponentiator.java \ 248 org/bouncycastle/crypto/modes/gcm/Tables1kGCMExponentiator.java \ 249 org/bouncycastle/crypto/modes/gcm/Tables64kGCMMultiplier.java \
|
/external/dropbear/libtomcrypt/demos/ |
tv_gen.c | 588 fprintf(out, "GCM Test Vectors. Uses the 00010203...NN-1 pattern for nonce/header/plaintext/key. The outputs\n" 601 fprintf(out, "GCM-%s (%d byte key)\n", cipher_descriptor[x].name, kl); 614 printf("Error GCM'ing: %s\n", error_to_string(err)); 776 printf("Generating GCM vectors..."); fflush(stdout); gcm_gen(); printf("done\n");
|