blob: 3ac481378f6ecbfab11443a41629946a8f6401ba [file] [log] [blame]
Test HKDF deriveBits operation for corner-case length values
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
PASS deriveBits("sha-1", 0) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS Bit derivations for SHA-1 with minimum, maximum and HashLen lengths all passed
PASS deriveBits("sha-1", 256 * 20 * 8) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS deriveBits("sha-224", 0) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS Bit derivations for SHA-224 with minimum, maximum and HashLen lengths all passed
PASS deriveBits("sha-224", 256 * 28 * 8) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS deriveBits("sha-256", 0) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS Bit derivations for SHA-256 with minimum, maximum and HashLen lengths all passed
PASS deriveBits("sha-256", 256 * 32 * 8) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS deriveBits("sha-384", 0) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS Bit derivations for SHA-384 with minimum, maximum and HashLen lengths all passed
PASS deriveBits("sha-384", 256 * 48 * 8) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS deriveBits("sha-512", 0) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS Bit derivations for SHA-512 with minimum, maximum and HashLen lengths all passed
PASS deriveBits("sha-512", 256 * 64 * 8) rejected promise with OperationError: The operation failed for an operation-specific reason.
PASS successfullyParsed is true
TEST COMPLETE