Electroneum
Loading...
Searching...
No Matches
keyraw.h
Go to the documentation of this file.
1/*
2 * keyraw.h -- raw key and signature access and conversion
3 *
4 * Copyright (c) 2005-2008, NLnet Labs. All rights reserved.
5 *
6 * See LICENSE for the license.
7 *
8 */
9
19
20#ifndef LDNS_KEYRAW_H
21#define LDNS_KEYRAW_H
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26#if LDNS_BUILD_CONFIG_HAVE_SSL
27# include <openssl/ssl.h>
28# include <openssl/evp.h>
29#endif /* LDNS_BUILD_CONFIG_HAVE_SSL */
30
38size_t sldns_rr_dnskey_key_size_raw(const unsigned char *keydata,
39 const size_t len, int alg);
40
48
49#if LDNS_BUILD_CONFIG_HAVE_SSL
55int sldns_key_EVP_load_gost_id(void);
56
58void sldns_key_EVP_unload_gost(void);
59
66DSA *sldns_key_buf2dsa_raw(unsigned char* key, size_t len);
67
75EVP_PKEY* sldns_gost2pkey_raw(unsigned char* key, size_t keylen);
76
85EVP_PKEY* sldns_ecdsa2pkey_raw(unsigned char* key, size_t keylen, uint8_t algo);
86
93RSA *sldns_key_buf2rsa_raw(unsigned char* key, size_t len);
94
102EVP_PKEY* sldns_ed255192pkey_raw(const unsigned char* key, size_t len);
103
111EVP_PKEY* sldns_ed4482pkey_raw(const unsigned char* key, size_t len);
112
121int sldns_digest_evp(unsigned char* data, unsigned int len,
122 unsigned char* dest, const EVP_MD* md);
123
124#endif /* LDNS_BUILD_CONFIG_HAVE_SSL */
125
126#ifdef __cplusplus
127}
128#endif
129
130#endif /* LDNS_KEYRAW_H */
const char * key
size_t sldns_rr_dnskey_key_size_raw(const unsigned char *keydata, const size_t len, int alg)
uint16_t sldns_calc_keytag_raw(uint8_t *key, size_t keysize)
CXA_THROW_INFO_T void(* dest)(void *))
unsigned short uint16_t
Definition stdint.h:125
unsigned char uint8_t
Definition stdint.h:124