mbed TLS v1.3.18
|
Backwards compatibility header for PolarSSL-1.2 from PolarSSL-1.3. More...
#include "config.h"
#include "sha256.h"
#include "sha512.h"
#include "x509.h"
#include "x509_crt.h"
#include "x509_crl.h"
#include "x509_csr.h"
#include "ssl_ciphersuites.h"
#include "rsa.h"
#include "pk.h"
Go to the source code of this file.
Typedefs | |
typedef sha256_context | sha2_context |
typedef sha512_context | sha4_context |
typedef x509_crt | x509_cert |
Functions | |
static void | sha2_starts (sha256_context *ctx, int is224) |
static void | sha2_update (sha256_context *ctx, const unsigned char *input, size_t ilen) |
static void | sha2_finish (sha256_context *ctx, unsigned char output[32]) |
static int | sha2_file (const char *path, unsigned char output[32], int is224) |
static void | sha2 (const unsigned char *input, size_t ilen, unsigned char output[32], int is224) |
static void | sha2_hmac_starts (sha256_context *ctx, const unsigned char *key, size_t keylen, int is224) |
static void | sha2_hmac_update (sha256_context *ctx, const unsigned char *input, size_t ilen) |
static void | sha2_hmac_finish (sha256_context *ctx, unsigned char output[32]) |
static void | sha2_hmac_reset (sha256_context *ctx) |
static void | sha2_hmac (const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[32], int is224) |
static int | sha2_self_test (int verbose) |
static void | sha4_starts (sha512_context *ctx, int is384) |
static void | sha4_update (sha512_context *ctx, const unsigned char *input, size_t ilen) |
static void | sha4_finish (sha512_context *ctx, unsigned char output[64]) |
static int | sha4_file (const char *path, unsigned char output[64], int is384) |
static void | sha4 (const unsigned char *input, size_t ilen, unsigned char output[32], int is384) |
static void | sha4_hmac_starts (sha512_context *ctx, const unsigned char *key, size_t keylen, int is384) |
static void | sha4_hmac_update (sha512_context *ctx, const unsigned char *input, size_t ilen) |
static void | sha4_hmac_finish (sha512_context *ctx, unsigned char output[64]) |
static void | sha4_hmac_reset (sha512_context *ctx) |
static void | sha4_hmac (const unsigned char *key, size_t keylen, const unsigned char *input, size_t ilen, unsigned char output[64], int is384) |
static int | sha4_self_test (int verbose) |
static int | x509parse_serial_gets (char *buf, size_t size, const x509_buf *serial) |
static int | x509parse_dn_gets (char *buf, size_t size, const x509_name *dn) |
static int | x509parse_time_expired (const x509_time *time) |
static int | x509parse_crt_der (x509_cert *chain, const unsigned char *buf, size_t buflen) |
static int | x509parse_crt (x509_cert *chain, const unsigned char *buf, size_t buflen) |
static int | x509parse_crtfile (x509_cert *chain, const char *path) |
static int | x509parse_crtpath (x509_cert *chain, const char *path) |
static int | x509parse_cert_info (char *buf, size_t size, const char *prefix, const x509_cert *crt) |
static int | x509parse_verify (x509_cert *crt, x509_cert *trust_ca, x509_crl *ca_crl, const char *cn, int *flags, int(*f_vrfy)(void *, x509_cert *, int, int *), void *p_vrfy) |
static int | x509parse_revoked (const x509_cert *crt, const x509_crl *crl) |
static void | x509_free (x509_cert *crt) |
static int | x509parse_crl (x509_crl *chain, const unsigned char *buf, size_t buflen) |
static int | x509parse_crlfile (x509_crl *chain, const char *path) |
static int | x509parse_crl_info (char *buf, size_t size, const char *prefix, const x509_crl *crl) |
static int | x509parse_csr (x509_csr *csr, const unsigned char *buf, size_t buflen) |
static int | x509parse_csrfile (x509_csr *csr, const char *path) |
static int | x509parse_csr_info (char *buf, size_t size, const char *prefix, const x509_csr *csr) |
static int | x509parse_keyfile (rsa_context *rsa, const char *path, const char *pwd) |
static int | x509parse_public_keyfile (rsa_context *rsa, const char *path) |
static int | x509parse_key (rsa_context *rsa, const unsigned char *key, size_t keylen, const unsigned char *pwd, size_t pwdlen) |
static int | x509parse_public_key (rsa_context *rsa, const unsigned char *key, size_t keylen) |
static int | x509_write_pubkey_der (unsigned char *buf, size_t len, rsa_context *rsa) |
static int | x509_write_key_der (unsigned char *buf, size_t len, rsa_context *rsa) |
Backwards compatibility header for PolarSSL-1.2 from PolarSSL-1.3.
Copyright (C) 2006-2013, ARM Limited, All Rights Reserved
This file is part of mbed TLS (https://tls.mbed.org)
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Definition in file compat-1.2.h.
#define POLARSSL_COMPAT_1_2_H |
Definition at line 33 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_ALG POLARSSL_ERR_X509_INVALID_ALG |
Definition at line 201 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_DATE POLARSSL_ERR_X509_INVALID_DATE |
Definition at line 204 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_EXTENSIONS POLARSSL_ERR_X509_INVALID_EXTENSIONS |
Definition at line 205 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_FORMAT POLARSSL_ERR_X509_INVALID_FORMAT |
Definition at line 199 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_NAME POLARSSL_ERR_X509_INVALID_NAME |
Definition at line 203 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_PUBKEY POLARSSL_ERR_PK_INVALID_PUBKEY |
Definition at line 301 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_SERIAL POLARSSL_ERR_X509_INVALID_SERIAL |
Definition at line 208 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_SIGNATURE POLARSSL_ERR_X509_INVALID_SIGNATURE |
Definition at line 207 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_INVALID_VERSION POLARSSL_ERR_X509_INVALID_VERSION |
Definition at line 200 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_SIG_MISMATCH POLARSSL_ERR_X509_SIG_MISMATCH |
Definition at line 206 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_UNKNOWN_SIG_ALG POLARSSL_ERR_X509_UNKNOWN_SIG_ALG |
Definition at line 202 of file compat-1.2.h.
#define POLARSSL_ERR_X509_CERT_UNKNOWN_VERSION POLARSSL_ERR_X509_UNKNOWN_VERSION |
Definition at line 209 of file compat-1.2.h.
#define POLARSSL_ERR_X509_KEY_INVALID_FORMAT POLARSSL_ERR_PK_KEY_INVALID_FORMAT |
Definition at line 299 of file compat-1.2.h.
#define POLARSSL_ERR_X509_PASSWORD_MISMATCH POLARSSL_ERR_PK_PASSWORD_MISMATCH |
Definition at line 298 of file compat-1.2.h.
#define POLARSSL_ERR_X509_UNKNOWN_PK_ALG POLARSSL_ERR_PK_UNKNOWN_PK_ALG |
Definition at line 300 of file compat-1.2.h.
#define POLARSSL_SHA2_C |
Definition at line 59 of file compat-1.2.h.
#define POLARSSL_SHA4_C |
Definition at line 108 of file compat-1.2.h.
#define POLARSSL_X509_PARSE_C |
Definition at line 274 of file compat-1.2.h.
#define POLARSSL_X509_PARSE_C |
Definition at line 274 of file compat-1.2.h.
#define POLARSSL_X509_PARSE_C |
Definition at line 274 of file compat-1.2.h.
#define SHOW_PROTOTYPE_CHANGE_WARNINGS |
Definition at line 42 of file compat-1.2.h.
#define SIG_RSA_MD2 POLARSSL_MD_MD2 |
Definition at line 164 of file compat-1.2.h.
#define SIG_RSA_MD4 POLARSSL_MD_MD4 |
Definition at line 165 of file compat-1.2.h.
#define SIG_RSA_MD5 POLARSSL_MD_MD5 |
Definition at line 166 of file compat-1.2.h.
#define SIG_RSA_RAW POLARSSL_MD_NONE |
Definition at line 163 of file compat-1.2.h.
#define SIG_RSA_SHA1 POLARSSL_MD_SHA1 |
Definition at line 167 of file compat-1.2.h.
#define SIG_RSA_SHA224 POLARSSL_MD_SHA224 |
Definition at line 168 of file compat-1.2.h.
#define SIG_RSA_SHA256 POLARSSL_MD_SHA256 |
Definition at line 169 of file compat-1.2.h.
#define SIG_RSA_SHA384 POLARSSL_MD_SHA384 |
Definition at line 170 of file compat-1.2.h.
#define SIG_RSA_SHA512 POLARSSL_MD_SHA512 |
Definition at line 171 of file compat-1.2.h.
#define ssl_default_ciphersuites ssl_list_ciphersuites() |
Definition at line 291 of file compat-1.2.h.
typedef sha256_context sha2_context |
Definition at line 65 of file compat-1.2.h.
typedef sha512_context sha4_context |
Definition at line 114 of file compat-1.2.h.
Definition at line 225 of file compat-1.2.h.
|
inlinestatic |
Definition at line 80 of file compat-1.2.h.
References sha256().
|
inlinestatic |
Definition at line 77 of file compat-1.2.h.
References sha256_file().
|
inlinestatic |
Definition at line 74 of file compat-1.2.h.
References sha256_finish().
|
inlinestatic |
Definition at line 97 of file compat-1.2.h.
References sha256_hmac().
|
inlinestatic |
Definition at line 91 of file compat-1.2.h.
References sha256_hmac_finish().
|
inlinestatic |
Definition at line 94 of file compat-1.2.h.
References sha256_hmac_reset().
|
inlinestatic |
Definition at line 84 of file compat-1.2.h.
References sha256_hmac_starts().
|
inlinestatic |
Definition at line 88 of file compat-1.2.h.
References sha256_hmac_update().
|
inlinestatic |
Definition at line 102 of file compat-1.2.h.
References sha256_self_test().
|
inlinestatic |
Definition at line 67 of file compat-1.2.h.
References sha256_starts().
|
inlinestatic |
Definition at line 70 of file compat-1.2.h.
References sha256_update().
|
inlinestatic |
Definition at line 129 of file compat-1.2.h.
References sha512().
|
inlinestatic |
Definition at line 126 of file compat-1.2.h.
References sha512_file().
|
inlinestatic |
Definition at line 123 of file compat-1.2.h.
References sha512_finish().
|
inlinestatic |
Definition at line 146 of file compat-1.2.h.
References sha512_hmac().
|
inlinestatic |
Definition at line 140 of file compat-1.2.h.
References sha512_hmac_finish().
|
inlinestatic |
Definition at line 143 of file compat-1.2.h.
References sha512_hmac_reset().
|
inlinestatic |
Definition at line 133 of file compat-1.2.h.
References sha512_hmac_starts().
|
inlinestatic |
Definition at line 137 of file compat-1.2.h.
References sha512_hmac_update().
|
inlinestatic |
Definition at line 151 of file compat-1.2.h.
References sha512_self_test().
|
inlinestatic |
Definition at line 116 of file compat-1.2.h.
References sha512_starts().
|
inlinestatic |
Definition at line 119 of file compat-1.2.h.
References sha512_update().
|
inlinestatic |
Definition at line 253 of file compat-1.2.h.
References x509_crt_free().
|
inlinestatic |
Definition at line 381 of file compat-1.2.h.
References pk_free(), pk_info_from_type(), pk_init_ctx(), pk_rsa, pk_write_key_der(), POLARSSL_PK_RSA, and rsa_copy().
|
inlinestatic |
Definition at line 372 of file compat-1.2.h.
References pk_free(), pk_info_from_type(), pk_init_ctx(), pk_rsa, pk_write_pubkey_der(), POLARSSL_PK_RSA, and rsa_copy().
|
inlinestatic |
Definition at line 240 of file compat-1.2.h.
References x509_crt_info().
|
inlinestatic |
Definition at line 261 of file compat-1.2.h.
References x509_crl_parse().
|
inlinestatic |
Definition at line 267 of file compat-1.2.h.
References x509_crl_info().
|
inlinestatic |
Definition at line 264 of file compat-1.2.h.
References x509_crl_parse_file().
|
inlinestatic |
Definition at line 231 of file compat-1.2.h.
References x509_crt_parse().
|
inlinestatic |
Definition at line 227 of file compat-1.2.h.
References x509_crt_parse_der().
|
inlinestatic |
Definition at line 234 of file compat-1.2.h.
References x509_crt_parse_file().
|
inlinestatic |
Definition at line 237 of file compat-1.2.h.
References x509_crt_parse_path().
|
inlinestatic |
Definition at line 276 of file compat-1.2.h.
References x509_csr_parse().
|
inlinestatic |
Definition at line 282 of file compat-1.2.h.
References x509_csr_info().
|
inlinestatic |
Definition at line 279 of file compat-1.2.h.
References x509_csr_parse_file().
|
inlinestatic |
Definition at line 214 of file compat-1.2.h.
References x509_dn_gets().
|
inlinestatic |
Definition at line 335 of file compat-1.2.h.
References pk_can_do(), pk_free(), pk_init(), pk_parse_key(), pk_rsa, POLARSSL_ERR_PK_TYPE_MISMATCH, POLARSSL_PK_RSA, rsa_copy(), and rsa_free().
|
inlinestatic |
Definition at line 304 of file compat-1.2.h.
References pk_can_do(), pk_free(), pk_init(), pk_parse_keyfile(), pk_rsa, POLARSSL_ERR_PK_TYPE_MISMATCH, POLARSSL_PK_RSA, rsa_copy(), and rsa_free().
|
inlinestatic |
Definition at line 352 of file compat-1.2.h.
References pk_can_do(), pk_free(), pk_init(), pk_parse_public_key(), pk_rsa, POLARSSL_ERR_PK_TYPE_MISMATCH, POLARSSL_PK_RSA, rsa_copy(), and rsa_free().
|
inlinestatic |
Definition at line 319 of file compat-1.2.h.
References pk_can_do(), pk_free(), pk_init(), pk_parse_public_keyfile(), pk_rsa, POLARSSL_ERR_PK_TYPE_MISMATCH, POLARSSL_PK_RSA, rsa_copy(), and rsa_free().
Definition at line 250 of file compat-1.2.h.
References x509_crt_revoked().
|
inlinestatic |
Definition at line 211 of file compat-1.2.h.
References x509_serial_gets().
|
inlinestatic |
Definition at line 217 of file compat-1.2.h.
References x509_time_expired().
|
inlinestatic |
Definition at line 244 of file compat-1.2.h.
References x509_crt_verify().