1Authen::U2F::Tester::KeUyssetrorCeo:n:tWrriabpupteeddA(u3Pt)ehreln:D:oUc2uFm:e:nTteasttieorn::Keystore::Wrapped(3)
2
3
4

NAME

6       Authen::U2F::Tester::Keystore::Wrapped - Wrapped Keystore for
7       Authen::U2F::Tester
8

VERSION

10       version 0.03
11

SYNOPSIS

13        my $key = Crypt::PK::ECC->new;
14        ...
15        my $keystore = Authen::U2F::Tester::Keystore->new(key => $key);
16
17        my $keypair = Authen::U2F::Tester::Keypair->new;
18        my $handle = $keystore->put($keypair->private_key);
19
20        if ($keystore->exists($handle)) {
21            my $pkec = $keystore->get($handle);
22        }
23

DESCRIPTION

25       This is a "wrapped" key store for Authen::U2F::Tester.  This is the
26       default key store used by Authen::U2F::Tester.  This key store does not
27       require any backing storage at all to keep track of registered keys.
28       Instead, it generates key handles by encrypting the private key using
29       the tester's private key and returns this encrypted value as the key
30       handle.  This is somewhat vaguely describe in the FIDO/U2F
31       specifications as a "wrapped" key handle.  My experience is that most
32       of the U2F devices out there use some variation of this scheme because
33       it allows the devices to be used with an infinite number of services as
34       no local storage is required on the U2F device.
35
36       Storage of the key handle is not required because this class can tell
37       if the handle is valid or not by trying to decrypt the passed in key
38       handle.  If decryption succeeds, then the handle is valid.  Otherwise,
39       the handle is not valid.
40

SEE ALSO

42       •   Authen::U2F::Tester::Role::Keystore
43

SOURCE

45       The development version is on github at
46       <http://https://github.com/mschout/perl-authen-u2f-tester> and may be
47       cloned from
48       <git://https://github.com/mschout/perl-authen-u2f-tester.git>
49

BUGS

51       Please report any bugs or feature requests on the bugtracker website
52       <https://github.com/mschout/perl-authen-u2f-tester/issues>
53
54       When submitting a bug or request, please include a test-file or a patch
55       to an existing test-file that illustrates the bug or desired feature.
56

AUTHOR

58       Michael Schout <mschout@cpan.org>
59
61       This software is copyright (c) 2017 by Michael Schout.
62
63       This is free software; you can redistribute it and/or modify it under
64       the same terms as the Perl 5 programming language system itself.
65
66
67
68perl v5.38.0                      2023A-u1t0h-e2n5::U2F::Tester::Keystore::Wrapped(3)
Impressum