diff options
Diffstat (limited to 'tests/tpm2dtests/ecc.scm')
-rw-r--r-- | tests/tpm2dtests/ecc.scm | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tests/tpm2dtests/ecc.scm b/tests/tpm2dtests/ecc.scm new file mode 100644 index 000000000..8b28cad23 --- /dev/null +++ b/tests/tpm2dtests/ecc.scm @@ -0,0 +1,23 @@ +#!/usr/bin/env gpgscm + +;; Copyright (C) 2021 [email protected] +;; +;; SPDX-License-Identifier: GPL-3.0-or-later +;; +(load (in-srcdir "tests" "tpm2dtests" "defs.scm")) + +(setup-environment) +(setenv "PINENTRY_USER_DATA" "ecckey" #t) + +;; +;; try checking signature and encryption on supported elliptic +;; curve keys. Note this list must be allowable by the swtpm +;; used for the test, which is why it's so small +;; +(define key-list '("nistp256" "nistp384")) + +(for-each + (lambda (algo) + (define name algo "<" algo "@example.com>") + (test-tpm name algo)) + key-list) |