26 lines
993 B
Plaintext
26 lines
993 B
Plaintext
Test generating an RSA key using RSA-PSS algorithm.
|
|
|
|
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
|
|
|
|
|
|
Generating a key pair...
|
|
PASS keyPair.toString() is '[object Object]'
|
|
PASS keyPair.publicKey.type is 'public'
|
|
PASS keyPair.publicKey.extractable is true
|
|
PASS keyPair.publicKey.algorithm.name is 'RSA-PSS'
|
|
PASS keyPair.publicKey.algorithm.modulusLength is 2048
|
|
PASS bytesToHexString(keyPair.publicKey.algorithm.publicExponent) is '010001'
|
|
PASS keyPair.publicKey.algorithm.hash.name is 'SHA-1'
|
|
PASS keyPair.publicKey.usages is ['verify']
|
|
PASS keyPair.privateKey.type is 'private'
|
|
PASS keyPair.privateKey.extractable is false
|
|
PASS keyPair.privateKey.algorithm.name is 'RSA-PSS'
|
|
PASS keyPair.privateKey.algorithm.modulusLength is 2048
|
|
PASS bytesToHexString(keyPair.privateKey.algorithm.publicExponent) is '010001'
|
|
PASS keyPair.privateKey.algorithm.hash.name is 'SHA-1'
|
|
PASS keyPair.privateKey.usages is ['sign']
|
|
PASS successfullyParsed is true
|
|
|
|
TEST COMPLETE
|
|
|