/external/dropbear/libtomcrypt/src/encauth/gcm/ |
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_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_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_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_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_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_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_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...] |
/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/icu4c/tools/genpname/ |
SyntheticPropertyAliases.txt | 32 gcm ; General_Category_Mask
|
/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/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...] |
crypt.tex | [all...] |
/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/dropbear/libtomcrypt/testprof/ |
x86_prof.c | 1384 gcm_state gcm local [all...] |
/external/dropbear/ |
configure | [all...] |