Wire Sysio
Wire Sysion 1.0.0
Loading...
Searching...
No Matches
pkcs5.h
Go to the documentation of this file.
1
/*
2
* Copyright 2015-2018 Yubico AB
3
*
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
* you may not use this file except in compliance with the License.
6
* You may obtain a copy of the License at
7
*
8
* http://www.apache.org/licenses/LICENSE-2.0
9
*
10
* Unless required by applicable law or agreed to in writing, software
11
* distributed under the License is distributed on an "AS IS" BASIS,
12
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
* See the License for the specific language governing permissions and
14
* limitations under the License.
15
*/
16
17
/* pkcs5.h
18
**
19
** Implements platform specific PKCS5 operations
20
*/
21
22
#ifndef _YUBICOM_PKCS5_H_
23
#define _YUBICOM_PKCS5_H_
24
25
#include <stdbool.h>
26
#include <
stdint.h
>
27
#include <stddef.h>
28
29
#include "
hash.h
"
30
31
#ifdef __cplusplus
32
extern
"C"
{
33
#endif
34
35
#ifndef __WIN32
36
#define YH_INTERNAL __attribute__((visibility("hidden")))
37
#else
38
#define YH_INTERNAL
39
#endif
40
41
bool
YH_INTERNAL
pkcs5_pbkdf2_hmac
(
const
uint8_t
*password,
size_t
cb_password,
42
const
uint8_t
*salt,
size_t
cb_salt,
43
uint64_t
iterations,
hash_t
hash,
44
uint8_t
*key,
size_t
cb_key);
45
46
#ifdef __cplusplus
47
}
48
#endif
49
50
#endif
/* _YUBICOM_PKCS5_H_ */
pkcs5_pbkdf2_hmac
bool YH_INTERNAL pkcs5_pbkdf2_hmac(const uint8_t *password, size_t cb_password, const uint8_t *salt, size_t cb_salt, uint64_t iterations, hash_t hash, uint8_t *key, size_t cb_key)
Definition
pkcs5.c:27
YH_INTERNAL
#define YH_INTERNAL
Definition
pkcs5.h:36
stdint.h
uint8_t
unsigned char uint8_t
Definition
stdint.h:124
uint64_t
unsigned __int64 uint64_t
Definition
stdint.h:136
hash.h
hash_t
hash_t
Definition
hash.h:33
libraries
yubihsm
common
pkcs5.h
Generated by
1.12.0