Cryptographic Token Interface Standard |
PKCS#11 |
typedef struct CK_RC5_PARAMS { CK_ULONG ulWordsize; CK_ULONG ulRounds; } CK_RC5_PARAMS;
ulWordsize | wordsize of RC5 cipher in bytes |
ulRounds | number of rounds of RC5 encipherment |
CK_RC5_PARAMS_PTR is a pointer to a CK_RC5_PARAMS.
typedef struct CK_RC5_CBC_PARAMS { CK_ULONG ulWordsize; CK_ULONG ulRounds; CK_BYTE_PTR pIv; CK_ULONG ulIvLen; } CK_RC5_CBC_PARAMS;
ulWordsize | wordsize of RC5 cipher in bytes |
ulRounds | number of rounds of RC5 encipherment |
pIv | pointer to initialization vector (IV) for CBC encryption |
ulIvLen | length of initialization vector (must be same as blocksize) |
CK_RC5_CBC_PARAMS_PTR is a pointer to a CK_RC5_CBC_PARAMS.
typedef struct CK_RC5_MAC_GENERAL_PARAMS { CK_ULONG ulWordsize; CK_ULONG ulRounds; CK_ULONG ulMacLength; } CK_RC5_MAC_GENERAL_PARAMS;
ulWordsize | wordsize of RC5 cipher in bytes |
ulRounds | number of rounds of RC5 encipherment |
ulMacLength | length of the MAC produced, in bytes |
CK_RC5_MAC_GENERAL_PARAMS_PTR is a pointer to a CK_RC5_MAC_GENERAL_PARAMS.