Diff for /libaitio/src/crypt.c between versions 1.10 and 1.10.10.1

version 1.10, 2014/02/08 22:06:17 version 1.10.10.1, 2019/10/08 12:58:55
Line 205  io_ctr_AES(u_char *pInput, int inLen, u_char **ppOutpu Line 205  io_ctr_AES(u_char *pInput, int inLen, u_char **ppOutpu
         while (inLen) {          while (inLen) {
                 num = 0;                  num = 0;
                 memset(ecount_buf, 0, sizeof ecount_buf);                  memset(ecount_buf, 0, sizeof ecount_buf);
   #if OPENSSL_VERSION_NUMBER >= 0x10100000L
                   CRYPTO_ctr128_encrypt(pInput + total, (*ppOutput) + total, 
                                   (inLen / (AES_BLOCK_SIZE - 1)) ? (AES_BLOCK_SIZE - 1) : inLen, 
                                   &key, IV, ecount_buf, &num, (block128_f) AES_encrypt);
   #else
                 AES_ctr128_encrypt(pInput + total, (*ppOutput) + total,                   AES_ctr128_encrypt(pInput + total, (*ppOutput) + total, 
                                 (inLen / (AES_BLOCK_SIZE - 1)) ? (AES_BLOCK_SIZE - 1) : inLen,                                   (inLen / (AES_BLOCK_SIZE - 1)) ? (AES_BLOCK_SIZE - 1) : inLen, 
                                 &key, IV, ecount_buf, &num);                                  &key, IV, ecount_buf, &num);
   #endif
                 if (num < 1) {                  if (num < 1) {
                         e_free(*ppOutput);                          e_free(*ppOutput);
                         *ppOutput = NULL;                          *ppOutput = NULL;

Removed from v.1.10  
changed lines
  Added in v.1.10.10.1


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>