RetroArch
Functions | Variables
md_wrap.c File Reference

Generic message digest wrapper for mbed TLS. More...

#include "mbedtls/config.h"
#include "mbedtls/md_internal.h"
#include "mbedtls/md5.h"
#include "mbedtls/ripemd160.h"
#include "mbedtls/sha1.h"
#include "mbedtls/sha256.h"
#include "mbedtls/sha512.h"
#include "mbedtls/platform.h"
Include dependency graph for md_wrap.c:

Functions

static void md5_starts_wrap (void *ctx)
 
static void md5_update_wrap (void *ctx, const unsigned char *input, size_t ilen)
 
static void md5_finish_wrap (void *ctx, unsigned char *output)
 
static voidmd5_ctx_alloc (void)
 
static void md5_ctx_free (void *ctx)
 
static void md5_clone_wrap (void *dst, const void *src)
 
static void md5_process_wrap (void *ctx, const unsigned char *data)
 
static void ripemd160_starts_wrap (void *ctx)
 
static void ripemd160_update_wrap (void *ctx, const unsigned char *input, size_t ilen)
 
static void ripemd160_finish_wrap (void *ctx, unsigned char *output)
 
static voidripemd160_ctx_alloc (void)
 
static void ripemd160_ctx_free (void *ctx)
 
static void ripemd160_clone_wrap (void *dst, const void *src)
 
static void ripemd160_process_wrap (void *ctx, const unsigned char *data)
 
static void sha1_starts_wrap (void *ctx)
 
static void sha1_update_wrap (void *ctx, const unsigned char *input, size_t ilen)
 
static void sha1_finish_wrap (void *ctx, unsigned char *output)
 
static voidsha1_ctx_alloc (void)
 
static void sha1_clone_wrap (void *dst, const void *src)
 
static void sha1_ctx_free (void *ctx)
 
static void sha1_process_wrap (void *ctx, const unsigned char *data)
 
static void sha224_starts_wrap (void *ctx)
 
static void sha224_update_wrap (void *ctx, const unsigned char *input, size_t ilen)
 
static void sha224_finish_wrap (void *ctx, unsigned char *output)
 
static void sha224_wrap (const unsigned char *input, size_t ilen, unsigned char *output)
 
static voidsha224_ctx_alloc (void)
 
static void sha224_ctx_free (void *ctx)
 
static void sha224_clone_wrap (void *dst, const void *src)
 
static void sha224_process_wrap (void *ctx, const unsigned char *data)
 
static void sha256_starts_wrap (void *ctx)
 
static void sha256_wrap (const unsigned char *input, size_t ilen, unsigned char *output)
 
static void sha384_starts_wrap (void *ctx)
 
static void sha384_update_wrap (void *ctx, const unsigned char *input, size_t ilen)
 
static void sha384_finish_wrap (void *ctx, unsigned char *output)
 
static void sha384_wrap (const unsigned char *input, size_t ilen, unsigned char *output)
 
static voidsha384_ctx_alloc (void)
 
static void sha384_ctx_free (void *ctx)
 
static void sha384_clone_wrap (void *dst, const void *src)
 
static void sha384_process_wrap (void *ctx, const unsigned char *data)
 
static void sha512_starts_wrap (void *ctx)
 
static void sha512_wrap (const unsigned char *input, size_t ilen, unsigned char *output)
 

Variables

const mbedtls_md_info_t mbedtls_md5_info
 
const mbedtls_md_info_t mbedtls_ripemd160_info
 
const mbedtls_md_info_t mbedtls_sha1_info
 
const mbedtls_md_info_t mbedtls_sha224_info
 
const mbedtls_md_info_t mbedtls_sha256_info
 
const mbedtls_md_info_t mbedtls_sha384_info
 
const mbedtls_md_info_t mbedtls_sha512_info
 

Detailed Description

Generic message digest wrapper for mbed TLS.

Author
Adriaan de Jong dejon.nosp@m.g@fo.nosp@m.x-it..nosp@m.com

Copyright (C) 2006-2015, ARM Limited, All Rights Reserved SPDX-License-Identifier: Apache-2.0

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

This file is part of mbed TLS (https://tls.mbed.org)

Function Documentation

◆ md5_clone_wrap()

static void md5_clone_wrap ( void dst,
const void src 
)
static
Here is the call graph for this function:

◆ md5_ctx_alloc()

static void* md5_ctx_alloc ( void  )
static
Here is the call graph for this function:

◆ md5_ctx_free()

static void md5_ctx_free ( void ctx)
static
Here is the call graph for this function:

◆ md5_finish_wrap()

static void md5_finish_wrap ( void ctx,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ md5_process_wrap()

static void md5_process_wrap ( void ctx,
const unsigned char *  data 
)
static
Here is the call graph for this function:

◆ md5_starts_wrap()

static void md5_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ md5_update_wrap()

static void md5_update_wrap ( void ctx,
const unsigned char *  input,
size_t  ilen 
)
static
Here is the call graph for this function:

◆ ripemd160_clone_wrap()

static void ripemd160_clone_wrap ( void dst,
const void src 
)
static
Here is the call graph for this function:

◆ ripemd160_ctx_alloc()

static void* ripemd160_ctx_alloc ( void  )
static
Here is the call graph for this function:

◆ ripemd160_ctx_free()

static void ripemd160_ctx_free ( void ctx)
static
Here is the call graph for this function:

◆ ripemd160_finish_wrap()

static void ripemd160_finish_wrap ( void ctx,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ ripemd160_process_wrap()

static void ripemd160_process_wrap ( void ctx,
const unsigned char *  data 
)
static
Here is the call graph for this function:

◆ ripemd160_starts_wrap()

static void ripemd160_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ ripemd160_update_wrap()

static void ripemd160_update_wrap ( void ctx,
const unsigned char *  input,
size_t  ilen 
)
static
Here is the call graph for this function:

◆ sha1_clone_wrap()

static void sha1_clone_wrap ( void dst,
const void src 
)
static
Here is the call graph for this function:

◆ sha1_ctx_alloc()

static void* sha1_ctx_alloc ( void  )
static
Here is the call graph for this function:

◆ sha1_ctx_free()

static void sha1_ctx_free ( void ctx)
static
Here is the call graph for this function:

◆ sha1_finish_wrap()

static void sha1_finish_wrap ( void ctx,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ sha1_process_wrap()

static void sha1_process_wrap ( void ctx,
const unsigned char *  data 
)
static
Here is the call graph for this function:

◆ sha1_starts_wrap()

static void sha1_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ sha1_update_wrap()

static void sha1_update_wrap ( void ctx,
const unsigned char *  input,
size_t  ilen 
)
static
Here is the call graph for this function:

◆ sha224_clone_wrap()

static void sha224_clone_wrap ( void dst,
const void src 
)
static
Here is the call graph for this function:

◆ sha224_ctx_alloc()

static void* sha224_ctx_alloc ( void  )
static
Here is the call graph for this function:

◆ sha224_ctx_free()

static void sha224_ctx_free ( void ctx)
static
Here is the call graph for this function:

◆ sha224_finish_wrap()

static void sha224_finish_wrap ( void ctx,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ sha224_process_wrap()

static void sha224_process_wrap ( void ctx,
const unsigned char *  data 
)
static
Here is the call graph for this function:

◆ sha224_starts_wrap()

static void sha224_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ sha224_update_wrap()

static void sha224_update_wrap ( void ctx,
const unsigned char *  input,
size_t  ilen 
)
static
Here is the call graph for this function:

◆ sha224_wrap()

static void sha224_wrap ( const unsigned char *  input,
size_t  ilen,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ sha256_starts_wrap()

static void sha256_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ sha256_wrap()

static void sha256_wrap ( const unsigned char *  input,
size_t  ilen,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ sha384_clone_wrap()

static void sha384_clone_wrap ( void dst,
const void src 
)
static
Here is the call graph for this function:

◆ sha384_ctx_alloc()

static void* sha384_ctx_alloc ( void  )
static
Here is the call graph for this function:

◆ sha384_ctx_free()

static void sha384_ctx_free ( void ctx)
static
Here is the call graph for this function:

◆ sha384_finish_wrap()

static void sha384_finish_wrap ( void ctx,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ sha384_process_wrap()

static void sha384_process_wrap ( void ctx,
const unsigned char *  data 
)
static
Here is the call graph for this function:

◆ sha384_starts_wrap()

static void sha384_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ sha384_update_wrap()

static void sha384_update_wrap ( void ctx,
const unsigned char *  input,
size_t  ilen 
)
static
Here is the call graph for this function:

◆ sha384_wrap()

static void sha384_wrap ( const unsigned char *  input,
size_t  ilen,
unsigned char *  output 
)
static
Here is the call graph for this function:

◆ sha512_starts_wrap()

static void sha512_starts_wrap ( void ctx)
static
Here is the call graph for this function:

◆ sha512_wrap()

static void sha512_wrap ( const unsigned char *  input,
size_t  ilen,
unsigned char *  output 
)
static
Here is the call graph for this function:

Variable Documentation

◆ mbedtls_md5_info

const mbedtls_md_info_t mbedtls_md5_info
Initial value:
= {
"MD5",
16,
64,
}
static void md5_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:211
Definition: md.h:43
static void * md5_ctx_alloc(void)
Definition: md_wrap.c:216
void mbedtls_md5(const unsigned char *input, size_t ilen, unsigned char output[16])
Output = MD5( input buffer )
Definition: md5.c:316
static void md5_ctx_free(void *ctx)
Definition: md_wrap.c:226
static void md5_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:238
static void md5_starts_wrap(void *ctx)
Definition: md_wrap.c:200
static void md5_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:205
static void md5_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:232

◆ mbedtls_ripemd160_info

const mbedtls_md_info_t mbedtls_ripemd160_info
Initial value:
= {
"RIPEMD160",
20,
64,
}
static void ripemd160_starts_wrap(void *ctx)
Definition: md_wrap.c:262
static void ripemd160_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:273
void mbedtls_ripemd160(const unsigned char *input, size_t ilen, unsigned char output[20])
Output = RIPEMD-160( input buffer )
Definition: ripemd160.c:383
static void ripemd160_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:300
static void ripemd160_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:294
static void ripemd160_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:267
static void * ripemd160_ctx_alloc(void)
Definition: md_wrap.c:278
Definition: md.h:49
static void ripemd160_ctx_free(void *ctx)
Definition: md_wrap.c:288

◆ mbedtls_sha1_info

const mbedtls_md_info_t mbedtls_sha1_info
Initial value:
= {
"SHA1",
20,
64,
}
static void sha1_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:335
static void sha1_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:329
void mbedtls_sha1(const unsigned char *input, size_t ilen, unsigned char output[20])
Output = SHA-1( input buffer )
Definition: sha1.c:349
static void sha1_starts_wrap(void *ctx)
Definition: md_wrap.c:324
static void sha1_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:350
static void * sha1_ctx_alloc(void)
Definition: md_wrap.c:340
static void sha1_ctx_free(void *ctx)
Definition: md_wrap.c:356
static void sha1_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:362
Definition: md.h:44

◆ mbedtls_sha224_info

const mbedtls_md_info_t mbedtls_sha224_info
Initial value:
= {
"SHA224",
28,
64,
}
Definition: md.h:45
static void sha224_ctx_free(void *ctx)
Definition: md_wrap.c:421
static void sha224_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:433
static void * sha224_ctx_alloc(void)
Definition: md_wrap.c:411
static void sha224_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:427
static void sha224_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:400
static void sha224_starts_wrap(void *ctx)
Definition: md_wrap.c:389
static void sha224_wrap(const unsigned char *input, size_t ilen, unsigned char *output)
Definition: md_wrap.c:405
static void sha224_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:394

◆ mbedtls_sha256_info

const mbedtls_md_info_t mbedtls_sha256_info
Initial value:
= {
"SHA256",
32,
64,
}
static void sha256_wrap(const unsigned char *input, size_t ilen, unsigned char *output)
Definition: md_wrap.c:458
Definition: md.h:46
static void sha256_starts_wrap(void *ctx)
Definition: md_wrap.c:453
static void sha224_ctx_free(void *ctx)
Definition: md_wrap.c:421
static void sha224_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:433
static void * sha224_ctx_alloc(void)
Definition: md_wrap.c:411
static void sha224_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:427
static void sha224_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:400
static void sha224_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:394

◆ mbedtls_sha384_info

const mbedtls_md_info_t mbedtls_sha384_info
Initial value:
= {
"SHA384",
48,
128,
}
static void sha384_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:527
static void sha384_ctx_free(void *ctx)
Definition: md_wrap.c:515
static void sha384_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:521
static void sha384_starts_wrap(void *ctx)
Definition: md_wrap.c:483
static void sha384_wrap(const unsigned char *input, size_t ilen, unsigned char *output)
Definition: md_wrap.c:499
static void sha384_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:494
Definition: md.h:47
static void * sha384_ctx_alloc(void)
Definition: md_wrap.c:505
static void sha384_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:488

◆ mbedtls_sha512_info

const mbedtls_md_info_t mbedtls_sha512_info
Initial value:
= {
"SHA512",
64,
128,
}
static void sha384_process_wrap(void *ctx, const unsigned char *data)
Definition: md_wrap.c:527
static void sha384_ctx_free(void *ctx)
Definition: md_wrap.c:515
static void sha512_wrap(const unsigned char *input, size_t ilen, unsigned char *output)
Definition: md_wrap.c:552
Definition: md.h:48
static void sha384_clone_wrap(void *dst, const void *src)
Definition: md_wrap.c:521
static void sha384_finish_wrap(void *ctx, unsigned char *output)
Definition: md_wrap.c:494
static void * sha384_ctx_alloc(void)
Definition: md_wrap.c:505
static void sha384_update_wrap(void *ctx, const unsigned char *input, size_t ilen)
Definition: md_wrap.c:488
static void sha512_starts_wrap(void *ctx)
Definition: md_wrap.c:547