Cryptoki: a cryptographic Token Interface



Download 360.55 Kb.
Page144/196
Date22.12.2023
Size360.55 Kb.
#63026
1   ...   140   141   142   143   144   145   146   147   ...   196
v201-95
pkcs11-base-v2.40-cos01

11.10. About RC2


RC2 is a block cipher which is trademarked by RSA Data Security. It has a variable keysize and an additional parameter, the “effective number of bits in the RC2 search space”, which can take on values in the range 1-1024, inclusive. The effective number of bits in the RC2 search space is sometimes specified by an RC2 “version number”; this “version number” is not the same thing as the “effective number of bits”, however. There is a canonical way to convert from one to the other.

11.11. RC2 mechanism parameters

  • CK_RC2_PARAMS; CK_RC2_PARAMS_PTR


CK_RC2_PARAMS provides the parameters to the CKM_RC2_ECB and CKM_RC2_MAC mechanisms. It holds the effective number of bits in the RC2 search space. It is defined as follows:
typedef CK_ULONG CK_RC2_PARAMS;


CK_RC2_PARAMS_PTR is a pointer to a CK_RC2_PARAMS.
  • CK_RC2_CBC_PARAMS; CK_RC2_CBC_PARAMS_PTR


CK_RC2_CBC_PARAMS is a structure that provides the parameters to the CKM_RC2_CBC and CKM_RC2_CBC_PAD mechanisms. It is defined as follows:
typedef struct CK_RC2_CBC_PARAMS {
CK_ULONG ulEffectiveBits;
CK_BYTE iv[8];
} CK_RC2_CBC_PARAMS;

The fields of the structure have the following meanings:


ulEffectiveBits the effective number of bits in the RC2 search space
iv the initialization vector (IV) for cipher block chaining mode
CK_RC2_CBC_PARAMS_PTR is a pointer to a CK_RC2_CBC_PARAMS.
  • CK_RC2_MAC_GENERAL_PARAMS; CK_RC2_MAC_GENERAL_PARAMS_PTR


CK_RC2_MAC_GENERAL_PARAMS is a structure that provides the parameters to the CKM_RC2_MAC_GENERAL mechanism. It is defined as follows:
typedef struct CK_RC2_MAC_GENERAL_PARAMS {
CK_ULONG ulEffectiveBits;
CK_ULONG ulMacLength;
} CK_RC2_MAC_GENERAL_PARAMS;

The fields of the structure have the following meanings:


ulEffectiveBits the effective number of bits in the RC2 search space
ulMacLength length of the MAC produced, in bytes

Download 360.55 Kb.

Share with your friends:
1   ...   140   141   142   143   144   145   146   147   ...   196




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

    Main page