FreeRDP
|
#include <winpr/config.h>
#include <winpr/crt.h>
#include <winpr/assert.h>
#include <winpr/crypto.h>
#include "../log.h"
Macros | |
#define | TAG WINPR_TAG("crypto.hash") |
Functions | |
WINPR_MD_TYPE | winpr_md_type_from_string (const char *name) |
const char * | winpr_md_type_to_string (WINPR_MD_TYPE md) |
WINPR_HMAC_CTX * | winpr_HMAC_New (void) |
BOOL | winpr_HMAC_Init (WINPR_HMAC_CTX *ctx, WINPR_MD_TYPE md, const void *key, size_t keylen) |
BOOL | winpr_HMAC_Update (WINPR_HMAC_CTX *ctx, const void *input, size_t ilen) |
BOOL | winpr_HMAC_Final (WINPR_HMAC_CTX *ctx, void *output, size_t olen) |
void | winpr_HMAC_Free (WINPR_HMAC_CTX *ctx) |
BOOL | winpr_HMAC (WINPR_MD_TYPE md, const void *key, size_t keylen, const void *input, size_t ilen, void *output, size_t olen) |
WINPR_DIGEST_CTX * | winpr_Digest_New (void) |
BOOL | winpr_Digest_Init_Allow_FIPS (WINPR_DIGEST_CTX *ctx, WINPR_MD_TYPE md) |
BOOL | winpr_Digest_Init (WINPR_DIGEST_CTX *ctx, WINPR_MD_TYPE md) |
BOOL | winpr_Digest_Update (WINPR_DIGEST_CTX *ctx, const void *input, size_t ilen) |
BOOL | winpr_Digest_Final (WINPR_DIGEST_CTX *ctx, void *output, size_t olen) |
BOOL | winpr_DigestSign_Init (WINPR_DIGEST_CTX *ctx, WINPR_MD_TYPE digest, void *key) |
BOOL | winpr_DigestSign_Update (WINPR_DIGEST_CTX *ctx, const void *input, size_t ilen) |
BOOL | winpr_DigestSign_Final (WINPR_DIGEST_CTX *ctx, void *output, size_t *piolen) |
void | winpr_Digest_Free (WINPR_DIGEST_CTX *ctx) |
BOOL | winpr_Digest_Allow_FIPS (WINPR_MD_TYPE md, const void *input, size_t ilen, void *output, size_t olen) |
BOOL | winpr_Digest (WINPR_MD_TYPE md, const void *input, size_t ilen, void *output, size_t olen) |
Variables | |
static const struct hash_map | hashes [] |
#define TAG WINPR_TAG("crypto.hash") |
WinPR: Windows Portable Runtime
Copyright 2015 Marc-Andre Moreau marca ndre .more au@g mail. com
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.
BOOL winpr_Digest | ( | WINPR_MD_TYPE | md, |
const void * | input, | ||
size_t | ilen, | ||
void * | output, | ||
size_t | olen | ||
) |
BOOL winpr_Digest_Allow_FIPS | ( | WINPR_MD_TYPE | md, |
const void * | input, | ||
size_t | ilen, | ||
void * | output, | ||
size_t | olen | ||
) |
BOOL winpr_Digest_Final | ( | WINPR_DIGEST_CTX * | ctx, |
void * | output, | ||
size_t | olen | ||
) |
void winpr_Digest_Free | ( | WINPR_DIGEST_CTX * | ctx | ) |
BOOL winpr_Digest_Init | ( | WINPR_DIGEST_CTX * | ctx, |
WINPR_MD_TYPE | md | ||
) |
BOOL winpr_Digest_Init_Allow_FIPS | ( | WINPR_DIGEST_CTX * | ctx, |
WINPR_MD_TYPE | md | ||
) |
WINPR_DIGEST_CTX* winpr_Digest_New | ( | void | ) |
BOOL winpr_Digest_Update | ( | WINPR_DIGEST_CTX * | ctx, |
const void * | input, | ||
size_t | ilen | ||
) |
BOOL winpr_DigestSign_Final | ( | WINPR_DIGEST_CTX * | ctx, |
void * | output, | ||
size_t * | piolen | ||
) |
BOOL winpr_DigestSign_Init | ( | WINPR_DIGEST_CTX * | ctx, |
WINPR_MD_TYPE | digest, | ||
void * | key | ||
) |
BOOL winpr_DigestSign_Update | ( | WINPR_DIGEST_CTX * | ctx, |
const void * | input, | ||
size_t | ilen | ||
) |
BOOL winpr_HMAC | ( | WINPR_MD_TYPE | md, |
const void * | key, | ||
size_t | keylen, | ||
const void * | input, | ||
size_t | ilen, | ||
void * | output, | ||
size_t | olen | ||
) |
BOOL winpr_HMAC_Final | ( | WINPR_HMAC_CTX * | ctx, |
void * | output, | ||
size_t | olen | ||
) |
void winpr_HMAC_Free | ( | WINPR_HMAC_CTX * | ctx | ) |
BOOL winpr_HMAC_Init | ( | WINPR_HMAC_CTX * | ctx, |
WINPR_MD_TYPE | md, | ||
const void * | key, | ||
size_t | keylen | ||
) |
WINPR_HMAC_CTX* winpr_HMAC_New | ( | void | ) |
BOOL winpr_HMAC_Update | ( | WINPR_HMAC_CTX * | ctx, |
const void * | input, | ||
size_t | ilen | ||
) |
WINPR_MD_TYPE winpr_md_type_from_string | ( | const char * | name | ) |
const char* winpr_md_type_to_string | ( | WINPR_MD_TYPE | md | ) |
|
static |