Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page168/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   164   165   166   167   168   169   170   171   ...   196
v201-95
pkcs11-base-v2.40-cos01
Output length

Comments

C_Encrypt

JUNIPER

multiple of 16

same as input length

no final part

C_Decrypt

JUNIPER

multiple of 16

same as input length

no final part

11.23.3. JUNIPER-CBC128


JUNIPER-CBC128, denoted CKM_JUNIPER_CBC128, is a mechanism for single- and multiple-part encryption and decryption with JUNIPER in 128-bit cipher-block chaining mode.
It has a parameter, a 24-byte initialization vector. During an encryption operation, this IV is set to some value generated by the token—in other words, the application cannot specify a particular IV when encrypting. It can, of course, specify a particular IV when decrypting.
Constraints on key types and the length of data are summarized in the following table. For encryption and decryption, the input and output data (parts) may begin at the same location in memory.
Table 87, JUNIPER-CBC128: Data and Length

Function

Key type

Input length

Output length

Comments

C_Encrypt

JUNIPER

multiple of 16

same as input length

no final part

C_Decrypt

JUNIPER

multiple of 16

same as input length

no final part

11.23.4. JUNIPER-COUNTER


JUNIPER COUNTER, denoted CKM_JUNIPER_COUNTER, is a mechanism for single- and multiple-part encryption and decryption with JUNIPER in counter mode.
It has a parameter, a 24-byte initialization vector. During an encryption operation, this IV is set to some value generated by the token—in other words, the application cannot specify a particular IV when encrypting. It can, of course, specify a particular IV when decrypting.
Constraints on key types and the length of data are summarized in the following table. For encryption and decryption, the input and output data (parts) may begin at the same location in memory.
Table 88, JUNIPER-COUNTER: Data and Length

Function

Key type

Input length

Output length

Comments

C_Encrypt

JUNIPER

multiple of 16

same as input length

no final part

C_Decrypt

JUNIPER

multiple of 16

same as input length

no final part

11.23.5. JUNIPER-SHUFFLE


JUNIPER-SHUFFLE, denoted CKM_JUNIPER_SHUFFLE, is a mechanism for single- and multiple-part encryption and decryption with JUNIPER in shuffle mode.
It has a parameter, a 24-byte initialization vector. During an encryption operation, this IV is set to some value generated by the token—in other words, the application cannot specify a particular IV when encrypting. It can, of course, specify a particular IV when decrypting.
Constraints on key types and the length of data are summarized in the following table. For encryption and decryption, the input and output data (parts) may begin at the same location in memory.
Table 89, JUNIPER-SHUFFLE: Data and Length

Function

Key type

Input length

Output length

Comments

C_Encrypt

JUNIPER

multiple of 16

same as input length

no final part

C_Decrypt

JUNIPER

multiple of 16

same as input length

no final part

11.23.6. JUNIPER WRAP


The JUNIPER wrap and unwrap mechanism, denoted CKM_JUNIPER_WRAP, is a function used to wrap and unwrap an MEK. It can wrap or unwrap SKIPJACK, BATON, and JUNIPER keys.
It has no parameters.
When used to unwrap a key, this mechanism contributes the CKA_CLASS, CKA_KEY_TYPE, and CKA_VALUE attributes to it.

Download 360.55 Kb.

Share with your friends:
1   ...   164   165   166   167   168   169   170   171   ...   196




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

    Main page