rsassa-pkcs1-v1_5-generate-key-expected.txt 944 Bytes
Newer Older
1 2 3 4 5 6 7 8
Test generating an RSA key pair for RSASSA-PKCS1-v1_5.

On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".


Generating a key pair...
PASS keyPair.toString() is '[object KeyPair]'
PASS keyPair.publicKey.type is 'public'
9
PASS keyPair.publicKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
10
PASS keyPair.publicKey.algorithm.modulusLength is 2048
ap@apple.com's avatar
ap@apple.com committed
11
PASS bytesToHexString(keyPair.publicKey.algorithm.publicExponent) is '010001'
12 13
PASS keyPair.publicKey.algorithm.hash is undefined.
PASS keyPair.privateKey.type is 'private'
14
PASS keyPair.privateKey.algorithm.name is 'RSASSA-PKCS1-v1_5'
15
PASS keyPair.privateKey.algorithm.modulusLength is 2048
ap@apple.com's avatar
ap@apple.com committed
16
PASS bytesToHexString(keyPair.privateKey.algorithm.publicExponent) is '010001'
17 18 19 20 21 22 23 24
PASS keyPair.privateKey.algorithm.hash is undefined.

Testing that custom attributes on keys survive garbage collection...
PASS keyPair.publicKey.foo is 'bar'
PASS successfullyParsed is true

TEST COMPLETE