summaryrefslogtreecommitdiff
path: root/tests/jwk-kty-ec-correct.scm
diff options
context:
space:
mode:
authorVivien Kraus <vivien@planete-kraus.eu>2020-01-01 00:00:00 +0100
committerVivien Kraus <vivien@planete-kraus.eu>2021-06-19 15:44:24 +0200
commit6bc2ce4c55af6d3f3af7be494c149cbe33d6e08e (patch)
tree5152c6bec3b1583ef123d0ef58c403831fe98792 /tests/jwk-kty-ec-correct.scm
parentfadfd29ceb64c8a60a369c0d3f225cfd0f46157b (diff)
Add a strip function
Diffstat (limited to 'tests/jwk-kty-ec-correct.scm')
-rw-r--r--tests/jwk-kty-ec-correct.scm15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/jwk-kty-ec-correct.scm b/tests/jwk-kty-ec-correct.scm
new file mode 100644
index 0000000..04306eb
--- /dev/null
+++ b/tests/jwk-kty-ec-correct.scm
@@ -0,0 +1,15 @@
+(use-modules (webid-oidc stubs)
+ (webid-oidc testing))
+
+(with-test-environment
+ "jwk-kty-ec-correct"
+ (lambda ()
+ (let* ((key (json-string->scm "{
+ \"kty\":\"EC\",
+ \"x\":\"l8tFrhx-34tV3hRICRDY9zCkDlpBhF42UQUfWVAWBFs\",
+ \"y\":\"9VE4jf_Ok_o64zbTTlcuNJajHmt6v9TDVrU0CdvGRDA\",
+ \"crv\":\"P-256\"
+ }"))
+ (kty (kty key)))
+ (unless (eq? kty 'EC)
+ (exit 1)))))