Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page134/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   130   131   132   133   134   135   136   137   ...   196
v201-95
pkcs11-base-v2.40-cos01
Function

Key type

Input length

Output length

C_Encrypt1

RSA public key

k

k

C_Decrypt1

RSA private key

k

k

C_Sign1

RSA private key

k

k

C_SignRecover

RSA private key

k

k

C_Verify1

RSA public key

k, k2

N/A

C_VerifyRecover

RSA public key

k

k

C_WrapKey

RSA public key

k

k

C_UnwrapKey

RSA private key

k

k (specified in template)

1 Single-part operations only.
2 Data length, signature length.
For this mechanism, the ulMinKeySize and ulMaxKeySize fields of the CK_MECHANISM_INFO structure specify the supported range of RSA modulus sizes, in bits.
This mechanism is intended for compatibility with applications that do not follow the PKCS #1 or ISO/IEC 9796 block formats.

11.1.5. PKCS #1 RSA signature with MD2, MD5, or SHA-1


The PKCS #1 RSA signature with MD2 mechanism, denoted CKM_MD2_RSA_PKCS, performs single- and multiple-part digital signatures and verification operations without message recovery. The operations performed are as described in PKCS #1 with the object identifier md2WithRSAEncryption.
Similarly, the PKCS #1 RSA signature with MD5 mechanism, denoted CKM_MD5_RSA_PKCS, performs the same operations described in PKCS #1 with the object identifier md5WithRSAEncryption. The PKCS #1 RSA signature with SHA-1 mechanism, denoted CKM_SHA1_RSA_PKCS, performs the same operations, except that it uses the hash function SHA-1, instead of MD2 or MD5.
None of these mechanisms has a parameter.
Constraints on key types and the length of the data for these mechanisms are summarized in the following table. In the table, k is the length in bytes of the RSA modulus. For the PKCS #1 RSA signature with MD2 and PKCS #1 RSA signature with MD5 mechanisms, k must be at least 27; for the PKCS #1 RSA signature with SHA-1 mechanism, k must be at least 31.
Table 52, PKCS #1 RSA Signatures with MD2, MD5, or SHA-1: Key And Data Length

Function

Key type


Download 360.55 Kb.

Share with your friends:
1   ...   130   131   132   133   134   135   136   137   ...   196




The database is protected by copyright ©ininet.org 2024
send message

    Main page