diff options
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 */ | ||