Print this page
12390 AES: aes_mech_info_tab error
Reviewed by: Garrett D'Amore <garrett@damore.org>
Reviewed by: Matt Barden <mbarden@tintri.com>
Reviewed by: Toomas Soome <tsoome@me.com>

Split Close
Expand all
Collapse all
          --- old/usr/src/uts/common/crypto/io/aes.c
          +++ new/usr/src/uts/common/crypto/io/aes.c
↓ open down ↓ 67 lines elided ↑ open up ↑
  68   68              CRYPTO_FG_DECRYPT | CRYPTO_FG_DECRYPT_ATOMIC,
  69   69              AES_MIN_KEY_BYTES, AES_MAX_KEY_BYTES, CRYPTO_KEYSIZE_UNIT_IN_BYTES},
  70   70          /* AES_CBC */
  71   71          {SUN_CKM_AES_CBC, AES_CBC_MECH_INFO_TYPE,
  72   72              CRYPTO_FG_ENCRYPT | CRYPTO_FG_ENCRYPT_ATOMIC |
  73   73              CRYPTO_FG_DECRYPT | CRYPTO_FG_DECRYPT_ATOMIC,
  74   74              AES_MIN_KEY_BYTES, AES_MAX_KEY_BYTES, CRYPTO_KEYSIZE_UNIT_IN_BYTES},
  75   75          /* AES_CMAC */
  76   76          {SUN_CKM_AES_CMAC, AES_CMAC_MECH_INFO_TYPE,
  77   77              CRYPTO_FG_ENCRYPT | CRYPTO_FG_ENCRYPT_ATOMIC |
  78      -            CRYPTO_FG_MAC | CRYPTO_FG_MAC_ATOMIC |
       78 +            CRYPTO_FG_MAC | CRYPTO_FG_MAC_ATOMIC,
  79   79              AES_MIN_KEY_BYTES, AES_MAX_KEY_BYTES, CRYPTO_KEYSIZE_UNIT_IN_BYTES},
  80   80          /* AES_CTR */
  81   81          {SUN_CKM_AES_CTR, AES_CTR_MECH_INFO_TYPE,
  82   82              CRYPTO_FG_ENCRYPT | CRYPTO_FG_ENCRYPT_ATOMIC |
  83   83              CRYPTO_FG_DECRYPT | CRYPTO_FG_DECRYPT_ATOMIC,
  84   84              AES_MIN_KEY_BYTES, AES_MAX_KEY_BYTES, CRYPTO_KEYSIZE_UNIT_IN_BYTES},
  85   85          /* AES_CCM */
  86   86          {SUN_CKM_AES_CCM, AES_CCM_MECH_INFO_TYPE,
  87   87              CRYPTO_FG_ENCRYPT | CRYPTO_FG_ENCRYPT_ATOMIC |
  88   88              CRYPTO_FG_DECRYPT | CRYPTO_FG_DECRYPT_ATOMIC,
↓ open down ↓ 1483 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX