Print this page
6717509 Need to use bswap/bswapq for byte swap of 64-bit integer on x32/x64 (fix lint)

Split Close
Expand all
Collapse all
          --- old/usr/src/common/crypto/modes/ccm.c
          +++ new/usr/src/common/crypto/modes/ccm.c
↓ open down ↓ 368 lines elided ↑ open up ↑
 369  369      void (*xor_block)(uint8_t *, uint8_t *))
 370  370  {
 371  371          size_t remainder = length;
 372  372          size_t need;
 373  373          uint8_t *datap = (uint8_t *)data;
 374  374          uint8_t *blockp;
 375  375          uint8_t *cbp;
 376  376          uint64_t counter;
 377  377          size_t pt_len, total_decrypted_len, mac_len, pm_len, pd_len;
 378  378          uint8_t *resultp;
 379      -#ifdef _LITTLE_ENDIAN
 380      -        uint8_t *p;
 381      -#endif  /* _LITTLE_ENDIAN */
 382  379  
 383  380  
 384  381          pm_len = ctx->ccm_processed_mac_len;
 385  382  
 386  383          if (pm_len > 0) {
 387  384                  uint8_t *tmp;
 388  385                  /*
 389  386                   * all ciphertext has been processed, just waiting for
 390  387                   * part of the value of the mac
 391  388                   */
↓ open down ↓ 556 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX