Print this page
5072963 Need an optimized AES implementation for amd64

Split Close
Expand all
Collapse all
          --- old/usr/src/common/crypto/aes/aes_cbc_crypt.h
          +++ new/usr/src/common/crypto/aes/aes_cbc_crypt.h
↓ open down ↓ 11 lines elided ↑ open up ↑
  12   12   *
  13   13   * When distributing Covered Code, include this CDDL HEADER in each
  14   14   * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  15   15   * If applicable, add the following below this CDDL HEADER, with the
  16   16   * fields enclosed by brackets "[]" replaced with your own identifying
  17   17   * information: Portions Copyright [yyyy] [name of copyright owner]
  18   18   *
  19   19   * CDDL HEADER END
  20   20   */
  21   21  /*
  22      - * Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
       22 + * Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
  23   23   * Use is subject to license terms.
  24   24   */
  25   25  
  26   26  #ifndef _AES_CBC_CRYPT_H
  27   27  #define _AES_CBC_CRYPT_H
  28   28  
  29      -#pragma ident   "@(#)aes_cbc_crypt.h    1.6     07/09/11 SMI"
       29 +#pragma ident   "@(#)aes_cbc_crypt.h    1.7     08/05/21 SMI"
  30   30  
  31   31  #ifdef  __cplusplus
  32   32  extern "C" {
  33   33  #endif
  34   34  
  35   35  #include <sys/crypto/common.h>
  36   36  #include "aes_impl.h"
  37   37  
  38   38  /*
  39   39   * ac_keysched:         Pointer to key schedule.
↓ open down ↓ 25 lines elided ↑ open up ↑
  65   65   *                      AES_ECB_MODE, AES_CBC_MODE, or AES_CTR_MODE
  66   66   *                      AES_CCM_MODE
  67   67   *
  68   68   * ac_ccm_mac_len:      Stores length of the MAC in CCM mode.
  69   69   * ac_ccm_mac_buf:      Stores the intermediate value for MAC in CCM encrypt.
  70   70   *                      In CCM decrypt, stores the input MAC value.
  71   71   * ac_ccm_data_len:     Length of the plaintext for CCM mode encrypt, or
  72   72   *                      length of the ciphertext for CCM mode decrypt.
  73   73   * ac_ccm_processed_data_len:
  74   74   *                      Length of processed plaintext in CCM mode encrypt,
  75      - *                      or length of processed ciphertex for CCM mode decrypt.
       75 + *                      or length of processed ciphertext for CCM mode decrypt.
  76   76   * ac_ccm_processed_mac_len:
  77   77   *                      Length of MAC data accumulated in CCM mode decrypt.
  78   78   *
  79   79   * ac_ccm_pt_buf:       Only used in CCM mode decrypt.  It stores the
  80   80   *                      decrypted plaintext to be returned when
  81   81   *                      MAC verification succeeds in decrypt_final.
  82   82   *                      Memory for this should be allocated in the AES module.
  83   83   *
  84   84   */
  85   85  typedef struct aes_ctx {
↓ open down ↓ 49 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX