Wire Sysio Wire Sysion 1.0.0
|
#include <errno.h>
#include <string.h>
#include <limits.h>
#include <openssl/bio.h>
#include <openssl/evp.h>
#include <openssl/pem.h>
#include <openssl/x509.h>
#include "openssl-compat.h"
#include "util.h"
#include "insecure_memzero.h"
Go to the source code of this file.
Functions | |
bool | set_component (unsigned char *in_ptr, const BIGNUM *bn, int element_len) |
bool | read_ed25519_key (uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len) |
bool | read_private_key (uint8_t *buf, size_t len, yh_algorithm *algo, uint8_t *bytes, size_t *bytes_len, bool internal_repr) |
void | format_digest (uint8_t *digest, char *str, uint16_t len) |
int | algo2nid (yh_algorithm algo) |
bool | algo2type (yh_algorithm algorithm, yh_object_type *type) |
void | parse_NID (uint8_t *data, uint16_t data_len, const EVP_MD **md_type, int *digestinfo_len) |
bool | read_file (FILE *fp, uint8_t *buf, size_t *buf_len) |
bool | base64_decode (const char *in, uint8_t *out, size_t *len) |
bool | hex_decode (const char *in, uint8_t *out, size_t *len) |
bool | write_file (const uint8_t *buf, size_t buf_len, FILE *fp, format_t format) |
bool | write_ed25519_key (uint8_t *buf, size_t buf_len, FILE *fp, bool b64_encode) |
bool | split_hmac_key (yh_algorithm algorithm, uint8_t *in, size_t in_len, uint8_t *out, size_t *out_len) |
int algo2nid | ( | yh_algorithm | algo | ) |
Definition at line 335 of file util.c.
bool algo2type | ( | yh_algorithm | algorithm, |
yh_object_type * | type ) |
Definition at line 374 of file util.c.
bool base64_decode | ( | const char * | in, |
uint8_t * | out, | ||
size_t * | len ) |
Definition at line 503 of file util.c.
bool hex_decode | ( | const char * | in, |
uint8_t * | out, | ||
size_t * | len ) |
Definition at line 524 of file util.c.
Definition at line 452 of file util.c.
Definition at line 77 of file util.c.
bool read_file | ( | FILE * | fp, |
uint8_t * | buf, | ||
size_t * | buf_len ) |
Definition at line 476 of file util.c.
bool read_private_key | ( | uint8_t * | buf, |
size_t | len, | ||
yh_algorithm * | algo, | ||
uint8_t * | bytes, | ||
size_t * | bytes_len, | ||
bool | internal_repr ) |
Definition at line 116 of file util.c.
bool set_component | ( | unsigned char * | in_ptr, |
const BIGNUM * | bn, | ||
int | element_len ) |
Definition at line 30 of file util.c.
bool split_hmac_key | ( | yh_algorithm | algorithm, |
uint8_t * | in, | ||
size_t | in_len, | ||
uint8_t * | out, | ||
size_t * | out_len ) |
Definition at line 653 of file util.c.
bool write_ed25519_key | ( | uint8_t * | buf, |
size_t | buf_len, | ||
FILE * | fp, | ||
bool | b64_encode ) |
Definition at line 622 of file util.c.
Definition at line 559 of file util.c.