1
0
mirror of https://github.com/opencryptoki/opencryptoki.git synced 2026-10-24 05:39:17 +03:00
Files
Ingo Franzki 1cf361530d TESTCASES: Add tests for CKR_BUFFER_TOO_SMALL on encrypt and decrypt
Check that an encrypt or decrypt call with a too small buffer correctly
returns CKR_BUFFER_TOO_SMALL, update the output buffer length to the
required size, and does not write to the output buffer beyond the
provided output buffer length. Furthermore, the operation must stay
active and a retry must be possible.

Signed-off-by: Ingo Franzki <ifranzki@linux.ibm.com>
2026-10-22 12:53:13 +02:00
..
2018-09-25 17:40:31 +02:00
2023-01-24 14:52:11 +01:00
2023-01-24 14:52:11 +01:00

Notes:

aes_tests
	Tests aes cbc/ecb/ctr modes using published test vectors and
	generated test data.
	
	ICSF token - secret keys cannot wrap secret keys. 
	These testcase will fail in ICSF token. 

des_tests
	Tests des ecb/cbc modes using published test vectors and generated
	test data.

	ICSF token - secret keys cannot wrap secret keys. 
	These testcase will fail in ICSF token. 

des3_tests
	Tests des3 ecb/cbc modes using published test vectors and generated
	test data. 
	Tests des3 cbc mode with padding only using generated test data.

	ICSF token - secret keys cannot wrap secret keys. 
	These testcase will fail in ICSF token. 

dh_tests
	Tests key generation and key derivation.

digest_tests
	Tests message digest, multipart message digest, and signature 
	verification using published test vectors for:
	SHA1, SHA256, SHA384, SHA512, MD2, MD5, RIPEMD-160, RIPEMD-128
	HMAC SHA1, HMAC SHA256, HMAC SHA512, HMAC MD5

dsa_tests
	TODO - To be tested.

ec_tests
	Tests regular curves.

rsa_tests
	Tests RSA using published test vectors and generated test data. 

        ICSF token -  only supports public exponents 0x03 and 0x010001.
	Testcases with other exponents will fail.

ssl3_tests
	Tests key generation and key derivation.