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

version 1.10, 2014/02/08 22:06:17 version 1.10.10.2, 2019/10/08 13:00:42
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004 - 2014Copyright 2004 - 2019
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
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.2


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