diff options
author | nicoo <nicoo@debian.org> | 2020-02-12 13:43:18 +0100 |
---|---|---|
committer | Nicolas Braud-Santoni <nicolas@braud-santoni.eu> | 2020-02-12 13:43:18 +0100 |
commit | 88a8bdd35ca7fb0c1ce70abdd8262d958fedafc1 (patch) | |
tree | ce42d9d46d371c05eed82d8bb1e8aa7b2522a769 /src/fido/rs256.h | |
parent | 4e06e4554b69e678110563b1cf00a258a202dd7b (diff) | |
parent | c79050aa44b8836d836c5dd22a383a073c28b74b (diff) |
Merge upstream release 1.3.0 into debian/sid
Diffstat (limited to 'src/fido/rs256.h')
-rw-r--r-- | src/fido/rs256.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/fido/rs256.h b/src/fido/rs256.h new file mode 100644 index 0000000..d2fa162 --- /dev/null +++ b/src/fido/rs256.h | |||
@@ -0,0 +1,22 @@ | |||
1 | /* | ||
2 | * Copyright (c) 2018 Yubico AB. All rights reserved. | ||
3 | * Use of this source code is governed by a BSD-style | ||
4 | * license that can be found in the LICENSE file. | ||
5 | */ | ||
6 | |||
7 | #ifndef _FIDO_RS256_H | ||
8 | #define _FIDO_RS256_H | ||
9 | |||
10 | #include <openssl/rsa.h> | ||
11 | |||
12 | #include <stdint.h> | ||
13 | #include <stdlib.h> | ||
14 | |||
15 | rs256_pk_t *rs256_pk_new(void); | ||
16 | void rs256_pk_free(rs256_pk_t **); | ||
17 | EVP_PKEY *rs256_pk_to_EVP_PKEY(const rs256_pk_t *); | ||
18 | |||
19 | int rs256_pk_from_RSA(rs256_pk_t *, const RSA *); | ||
20 | int rs256_pk_from_ptr(rs256_pk_t *, const void *, size_t); | ||
21 | |||
22 | #endif /* !_FIDO_RS256_H */ | ||