pcks11: trivial: fix debug output for CKA_PRIME_1 and CKA_PRIME_2

Without this patch, debugging output issues these as unknown
attributes:

  ... C_CreateObject(): CKA_PRIVATE_EXPONENT = 97F798...
  ... C_CreateObject(): Attribute 0x124 = EFE5AD...
  ... C_CreateObject(): Attribute 0x125 = D4D3F6...
  ... C_CreateObject(): CKA_EXPONENT_1 = 5815FD...

With this patch, we see:

  ... C_CreateObject(): CKA_PRIVATE_EXPONENT = 97F798...
  ... C_CreateObject(): CKA_PRIME_1 = EFE5AD...
  ... C_CreateObject(): CKA_PRIME_2 = D4D3F6...
  ... C_CreateObject(): CKA_EXPONENT_1 = 5815FD...

Signed-Off-By: Anthony Foiani <anthony.foiani@gmail.com>
This commit is contained in:
Anthony Foiani 2012-11-11 22:46:37 -07:00 committed by Andreas Schwier
parent f63135afab
commit 27c677188e
1 changed files with 2 additions and 2 deletions

View File

@ -130,8 +130,8 @@ static struct fmap p11_attr_names[] = {
ul(CKA_MODULUS_BITS),
_(CKA_PUBLIC_EXPONENT),
_(CKA_PRIVATE_EXPONENT),
_(CKA_PRIME),
_(CKA_PRIME),
_(CKA_PRIME_1),
_(CKA_PRIME_2),
_(CKA_EXPONENT_1),
_(CKA_EXPONENT_2),
_(CKA_COEFFICIENT),