AES_BLOCK_SIZE 84 source4/heimdal/lib/hcrypto/aes.c unsigned char tmp[AES_BLOCK_SIZE]; AES_BLOCK_SIZE 88 source4/heimdal/lib/hcrypto/aes.c while (size >= AES_BLOCK_SIZE) { AES_BLOCK_SIZE 89 source4/heimdal/lib/hcrypto/aes.c for (i = 0; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 92 source4/heimdal/lib/hcrypto/aes.c memcpy(iv, out, AES_BLOCK_SIZE); AES_BLOCK_SIZE 93 source4/heimdal/lib/hcrypto/aes.c size -= AES_BLOCK_SIZE; AES_BLOCK_SIZE 94 source4/heimdal/lib/hcrypto/aes.c in += AES_BLOCK_SIZE; AES_BLOCK_SIZE 95 source4/heimdal/lib/hcrypto/aes.c out += AES_BLOCK_SIZE; AES_BLOCK_SIZE 100 source4/heimdal/lib/hcrypto/aes.c for (i = size; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 103 source4/heimdal/lib/hcrypto/aes.c memcpy(iv, out, AES_BLOCK_SIZE); AES_BLOCK_SIZE 106 source4/heimdal/lib/hcrypto/aes.c while (size >= AES_BLOCK_SIZE) { AES_BLOCK_SIZE 107 source4/heimdal/lib/hcrypto/aes.c memcpy(tmp, in, AES_BLOCK_SIZE); AES_BLOCK_SIZE 109 source4/heimdal/lib/hcrypto/aes.c for (i = 0; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 111 source4/heimdal/lib/hcrypto/aes.c memcpy(iv, tmp, AES_BLOCK_SIZE); AES_BLOCK_SIZE 112 source4/heimdal/lib/hcrypto/aes.c size -= AES_BLOCK_SIZE; AES_BLOCK_SIZE 113 source4/heimdal/lib/hcrypto/aes.c in += AES_BLOCK_SIZE; AES_BLOCK_SIZE 114 source4/heimdal/lib/hcrypto/aes.c out += AES_BLOCK_SIZE; AES_BLOCK_SIZE 117 source4/heimdal/lib/hcrypto/aes.c memcpy(tmp, in, AES_BLOCK_SIZE); AES_BLOCK_SIZE 121 source4/heimdal/lib/hcrypto/aes.c memcpy(iv, tmp, AES_BLOCK_SIZE); AES_BLOCK_SIZE 96 source4/heimdal/lib/hcrypto/evp-aes-cts.c unsigned char tmp[AES_BLOCK_SIZE]; AES_BLOCK_SIZE 106 source4/heimdal/lib/hcrypto/evp-aes-cts.c while(len > AES_BLOCK_SIZE) { AES_BLOCK_SIZE 107 source4/heimdal/lib/hcrypto/evp-aes-cts.c for (i = 0; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 110 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(ivec, out, AES_BLOCK_SIZE); AES_BLOCK_SIZE 111 source4/heimdal/lib/hcrypto/evp-aes-cts.c len -= AES_BLOCK_SIZE; AES_BLOCK_SIZE 112 source4/heimdal/lib/hcrypto/evp-aes-cts.c in += AES_BLOCK_SIZE; AES_BLOCK_SIZE 113 source4/heimdal/lib/hcrypto/evp-aes-cts.c out += AES_BLOCK_SIZE; AES_BLOCK_SIZE 118 source4/heimdal/lib/hcrypto/evp-aes-cts.c for (; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 121 source4/heimdal/lib/hcrypto/evp-aes-cts.c AES_encrypt(tmp, out - AES_BLOCK_SIZE, key); AES_BLOCK_SIZE 124 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(ivec, out - AES_BLOCK_SIZE, AES_BLOCK_SIZE); AES_BLOCK_SIZE 127 source4/heimdal/lib/hcrypto/evp-aes-cts.c unsigned char tmp2[AES_BLOCK_SIZE]; AES_BLOCK_SIZE 128 source4/heimdal/lib/hcrypto/evp-aes-cts.c unsigned char tmp3[AES_BLOCK_SIZE]; AES_BLOCK_SIZE 130 source4/heimdal/lib/hcrypto/evp-aes-cts.c while(len > AES_BLOCK_SIZE * 2) { AES_BLOCK_SIZE 131 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(tmp, in, AES_BLOCK_SIZE); AES_BLOCK_SIZE 133 source4/heimdal/lib/hcrypto/evp-aes-cts.c for (i = 0; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 135 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(ivec, tmp, AES_BLOCK_SIZE); AES_BLOCK_SIZE 136 source4/heimdal/lib/hcrypto/evp-aes-cts.c len -= AES_BLOCK_SIZE; AES_BLOCK_SIZE 137 source4/heimdal/lib/hcrypto/evp-aes-cts.c in += AES_BLOCK_SIZE; AES_BLOCK_SIZE 138 source4/heimdal/lib/hcrypto/evp-aes-cts.c out += AES_BLOCK_SIZE; AES_BLOCK_SIZE 141 source4/heimdal/lib/hcrypto/evp-aes-cts.c len -= AES_BLOCK_SIZE; AES_BLOCK_SIZE 143 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(tmp, in, AES_BLOCK_SIZE); /* save last iv */ AES_BLOCK_SIZE 146 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(tmp3, in + AES_BLOCK_SIZE, len); AES_BLOCK_SIZE 147 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(tmp3 + len, tmp2 + len, AES_BLOCK_SIZE - len); /* xor 0 */ AES_BLOCK_SIZE 150 source4/heimdal/lib/hcrypto/evp-aes-cts.c out[i + AES_BLOCK_SIZE] = tmp2[i] ^ tmp3[i]; AES_BLOCK_SIZE 153 source4/heimdal/lib/hcrypto/evp-aes-cts.c for (i = 0; i < AES_BLOCK_SIZE; i++) AES_BLOCK_SIZE 155 source4/heimdal/lib/hcrypto/evp-aes-cts.c memcpy(ivec, tmp, AES_BLOCK_SIZE); AES_BLOCK_SIZE 167 source4/heimdal/lib/hcrypto/evp-aes-cts.c if (len < AES_BLOCK_SIZE) AES_BLOCK_SIZE 169 source4/heimdal/lib/hcrypto/evp-aes-cts.c if (len == AES_BLOCK_SIZE) {