Electroneum
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 
20 #ifndef LDNS_KEYRAW_H
21 #define LDNS_KEYRAW_H
22 
23 #ifdef __cplusplus
24 extern "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 
38 size_t sldns_rr_dnskey_key_size_raw(const unsigned char *keydata,
39  const size_t len, int alg);
40 
47 uint16_t sldns_calc_keytag_raw(uint8_t* key, size_t keysize);
48 
49 #if LDNS_BUILD_CONFIG_HAVE_SSL
50 
55 int sldns_key_EVP_load_gost_id(void);
56 
58 void sldns_key_EVP_unload_gost(void);
59 
66 DSA *sldns_key_buf2dsa_raw(unsigned char* key, size_t len);
67 
75 EVP_PKEY* sldns_gost2pkey_raw(unsigned char* key, size_t keylen);
76 
85 EVP_PKEY* sldns_ecdsa2pkey_raw(unsigned char* key, size_t keylen, uint8_t algo);
86 
93 RSA *sldns_key_buf2rsa_raw(unsigned char* key, size_t len);
94 
102 EVP_PKEY* sldns_ed255192pkey_raw(const unsigned char* key, size_t len);
103 
111 EVP_PKEY* sldns_ed4482pkey_raw(const unsigned char* key, size_t len);
112 
121 int 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 */
size_t sldns_rr_dnskey_key_size_raw(const unsigned char *keydata, const size_t len, int alg)
CXA_THROW_INFO_T void(* dest)(void *))
Definition: stack_trace.cpp:91
const char * key
Definition: hmac_keccak.cpp:39
unsigned short uint16_t
Definition: stdint.h:125
unsigned char uint8_t
Definition: stdint.h:124
uint16_t sldns_calc_keytag_raw(uint8_t *key, size_t keysize)