Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page166/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   162   163   164   165   166   167   168   169   ...   196
v201-95
pkcs11-base-v2.40-cos01

11.22.3. BATON-ECB96


BATON-ECB96, denoted CKM_BATON_ECB96, is a mechanism for single- and multiple-part encryption and decryption with BATON in 96-bit electronic codebook 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:
Table 82, BATON-ECB96: Data and Length

Function

Key type

Input length

Output length

Comments

C_Encrypt

BATON

multiple of 12

same as input length

no final part

C_Decrypt

BATON

multiple of 12

same as input length

no final part

11.22.4. BATON-CBC128


BATON-CBC128, denoted CKM_BATON_CBC128, is a mechanism for single- and multiple-part encryption and decryption with BATON 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:
Table 83, BATON-CBC128: Data and Length


Download 360.55 Kb.

Share with your friends:
1   ...   162   163   164   165   166   167   168   169   ...   196




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

    Main page