CTR_BUFFER 58 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter = ((CTR_BUFFER* )buf)->enc_counter = NULL; CTR_BUFFER 61 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter_pos = 0; CTR_BUFFER 62 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->blocksize = size; CTR_BUFFER 64 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter = (u8 *)gf_malloc(size); CTR_BUFFER 65 src/mcrypt/ctr.c if (((CTR_BUFFER* )buf)->c_counter==NULL) goto freeall; CTR_BUFFER 67 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->enc_counter = (u8 *)gf_malloc(size); CTR_BUFFER 68 src/mcrypt/ctr.c if (((CTR_BUFFER* )buf)->enc_counter==NULL) goto freeall; CTR_BUFFER 71 src/mcrypt/ctr.c memcpy(((CTR_BUFFER* )buf)->enc_counter, IV, size); CTR_BUFFER 72 src/mcrypt/ctr.c memcpy(((CTR_BUFFER* )buf)->c_counter, IV, size); CTR_BUFFER 79 src/mcrypt/ctr.c gf_free(((CTR_BUFFER* )buf)->c_counter); CTR_BUFFER 80 src/mcrypt/ctr.c gf_free(((CTR_BUFFER* )buf)->enc_counter); CTR_BUFFER 86 src/mcrypt/ctr.c CTR_BUFFER* buf = (CTR_BUFFER* )_buf; CTR_BUFFER 87 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter_pos = ((u8*)IV)[0]; CTR_BUFFER 88 src/mcrypt/ctr.c memcpy(((CTR_BUFFER* )buf)->c_counter, &((u8*)IV)[1], size-1); CTR_BUFFER 89 src/mcrypt/ctr.c memcpy(((CTR_BUFFER* )buf)->enc_counter, &((u8*)IV)[1], size-1); CTR_BUFFER 96 src/mcrypt/ctr.c if (*size < ((CTR_BUFFER* )buf)->blocksize + 1) { CTR_BUFFER 97 src/mcrypt/ctr.c *size = ((CTR_BUFFER* )buf)->blocksize + 1; CTR_BUFFER 100 src/mcrypt/ctr.c *size = ((CTR_BUFFER* )buf)->blocksize + 1; CTR_BUFFER 102 src/mcrypt/ctr.c ((u8 *)IV)[0] = ((CTR_BUFFER* )buf)->c_counter_pos; CTR_BUFFER 103 src/mcrypt/ctr.c memcpy( & ((u8 *) IV)[1], ((CTR_BUFFER* )buf)->c_counter, ((CTR_BUFFER* )buf)->blocksize); CTR_BUFFER 110 src/mcrypt/ctr.c gf_free(((CTR_BUFFER* )buf)->c_counter); CTR_BUFFER 111 src/mcrypt/ctr.c gf_free(((CTR_BUFFER* )buf)->enc_counter); CTR_BUFFER 115 src/mcrypt/ctr.c void xor_stuff( CTR_BUFFER *buf, void* akey, void (*func)(void*,void*), u8* plain, int blocksize, int xor_size) CTR_BUFFER 122 src/mcrypt/ctr.c if (((CTR_BUFFER* )buf)->c_counter_pos == 0) { CTR_BUFFER 124 src/mcrypt/ctr.c memcpy( ((CTR_BUFFER* )buf)->enc_counter, ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 125 src/mcrypt/ctr.c _mcrypt_block_encrypt(akey, ((CTR_BUFFER* )buf)->enc_counter); CTR_BUFFER 127 src/mcrypt/ctr.c memxor( plain, ((CTR_BUFFER* )buf)->enc_counter, blocksize); CTR_BUFFER 129 src/mcrypt/ctr.c increase_counter( ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 133 src/mcrypt/ctr.c int size = blocksize - ((CTR_BUFFER* )buf)->c_counter_pos; CTR_BUFFER 135 src/mcrypt/ctr.c memxor( plain, &((CTR_BUFFER* )buf)->enc_counter[((CTR_BUFFER* )buf)->c_counter_pos], CTR_BUFFER 138 src/mcrypt/ctr.c increase_counter( ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 140 src/mcrypt/ctr.c memcpy( ((CTR_BUFFER* )buf)->enc_counter, ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 141 src/mcrypt/ctr.c _mcrypt_block_encrypt(akey, ((CTR_BUFFER* )buf)->enc_counter); CTR_BUFFER 143 src/mcrypt/ctr.c memxor( &plain[size], ((CTR_BUFFER* )buf)->enc_counter, CTR_BUFFER 144 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter_pos); CTR_BUFFER 150 src/mcrypt/ctr.c if (((CTR_BUFFER* )buf)->c_counter_pos == 0) { CTR_BUFFER 151 src/mcrypt/ctr.c memcpy( ((CTR_BUFFER* )buf)->enc_counter, ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 152 src/mcrypt/ctr.c _mcrypt_block_encrypt(akey, ((CTR_BUFFER* )buf)->enc_counter); CTR_BUFFER 154 src/mcrypt/ctr.c memxor( plain, ((CTR_BUFFER* )buf)->enc_counter, xor_size); CTR_BUFFER 155 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter_pos = xor_size; CTR_BUFFER 157 src/mcrypt/ctr.c int size = blocksize - ((CTR_BUFFER* )buf)->c_counter_pos; CTR_BUFFER 160 src/mcrypt/ctr.c memxor( plain, &((CTR_BUFFER* )buf)->enc_counter[((CTR_BUFFER* )buf)->c_counter_pos], CTR_BUFFER 163 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter_pos += min_size; CTR_BUFFER 168 src/mcrypt/ctr.c increase_counter( ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 170 src/mcrypt/ctr.c memcpy( ((CTR_BUFFER* )buf)->enc_counter, ((CTR_BUFFER* )buf)->c_counter, blocksize); CTR_BUFFER 171 src/mcrypt/ctr.c _mcrypt_block_encrypt(akey, ((CTR_BUFFER* )buf)->enc_counter); CTR_BUFFER 173 src/mcrypt/ctr.c memxor( &plain[min_size], ((CTR_BUFFER* )buf)->enc_counter, CTR_BUFFER 176 src/mcrypt/ctr.c ((CTR_BUFFER* )buf)->c_counter_pos = xor_size - min_size; CTR_BUFFER 194 src/mcrypt/ctr.c xor_stuff((CTR_BUFFER*) buf, akey, func, plain, blocksize, blocksize); CTR_BUFFER 208 src/mcrypt/ctr.c xor_stuff( (CTR_BUFFER*)buf, akey, func, plain, blocksize, modlen); CTR_BUFFER 234 src/mcrypt/ctr.c td->mode_size = sizeof(CTR_BUFFER);