Authen::U2F::Tester::Keystore::Wrapped(3pm)

Authen::U2F::Tester::Keystore::Wrapped3pm

Wrapped keystore for authen::u2f::tester

Usage

 my $key = Crypt::PK::ECC->new;
 ...
 my $keystore = Authen::U2F::Tester::Keystore->new(key => $key);
 my $keypair = Authen::U2F::Tester::Keypair->new;
 my $handle = $keystore->put($keypair->private_key);
 if ($keystore->exists($handle)) {
     my $pkec = $keystore->get($handle);
 }

Version

version 0.03

Overview

This is a "wrapped" key store for Authen::U2F::Tester. This is the default key store used by Authen::U2F::Tester. This key store does not require any backing storage at all to keep track of registered keys. Instead, it generates key handles by encrypting the private key using the tester's private key and returns this encrypted value as the key handle. This is somewhat vaguely describe in the FIDO/U2F specifications as a "wrapped" key handle. My experience is that most of the U2F devices out there use some variation of this scheme because it allows the devices to be used with an infinite number of services as no local storage is required on the U2F device.

Storage of the key handle is not required because this class can tell if the handle is valid or not by trying to decrypt the passed in key handle. If decryption succeeds, then the handle is valid. Otherwise, the handle is not valid.

Source

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

Releases

Unchanged in 4 releases since Debian 10 (Buster).

  1. 10–13

Bugs

Please report any bugs or feature requests on the bugtracker website <https://github.com/mschout/perl-authen-u2f-tester/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Author

Michael Schout <[email protected]>

From libauthen-u2f-tester-perl 0.03-1 in Debian 13 (Trixie). Parsed by carta from the page's man source.