jwk-import-use-values-expected.txt 933 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12
Test importing keys with various uses from JWK.

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


enconly:
PASS key.usages is ["encrypt"]

deconly:
PASS key.usages is ["decrypt"]

enconly,deconly:
13
PASS key.usages is ["decrypt","encrypt"]
14 15 16 17 18 19 20 21

wrap:
PASS key.usages is ["wrapKey"]

unwrap:
PASS key.usages is ["unwrapKey"]

wrap,unwrap:
22
PASS key.usages is ["unwrapKey","wrapKey"]
23 24

enconly,deconly,wrap:
25
PASS key.usages is ["decrypt","encrypt","wrapKey"]
26 27

enc:
28
PASS key.usages is ["decrypt","encrypt","unwrapKey","wrapKey"]
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51

sigonly:
PASS key.usages is ["sign"]

vfyonly:
PASS key.usages is ["verify"]

sig:
PASS key.usages is ["sign","verify"]

'enconly':
PASS key.usages is []

enconly :
PASS key.usages is []

EncOnly:
PASS key.usages is []

enconly, deconly:
PASS key.usages is ["encrypt"]

enconly,,deconly:
52
PASS key.usages is ["decrypt","encrypt"]
53 54 55 56 57

PASS successfullyParsed is true

TEST COMPLETE