mirror of
https://github.com/espressif/esp-idf
synced 2025-03-29 02:40:11 -04:00
Move supplicant to idf and do following refactoring: 1. Make the folder structure consitent with supplicant upstream 2. Remove duplicated header files and minimize the public header files 3. Refactor for WiFi/supplicant interfaces
23 lines
658 B
C
23 lines
658 B
C
/*
|
|
* PKCS #1 (RSA Encryption)
|
|
* Copyright (c) 2006-2009, Jouni Malinen <j@w1.fi>
|
|
*
|
|
* This software may be distributed under the terms of the BSD license.
|
|
* See README for more details.
|
|
*/
|
|
|
|
#ifndef PKCS1_H
|
|
#define PKCS1_H
|
|
|
|
int pkcs1_encrypt(int block_type, struct crypto_rsa_key *key,
|
|
int use_private, const u8 *in, size_t inlen,
|
|
u8 *out, size_t *outlen);
|
|
int pkcs1_v15_private_key_decrypt(struct crypto_rsa_key *key,
|
|
const u8 *in, size_t inlen,
|
|
u8 *out, size_t *outlen);
|
|
int pkcs1_decrypt_public_key(struct crypto_rsa_key *key,
|
|
const u8 *crypt, size_t crypt_len,
|
|
u8 *plain, size_t *plain_len);
|
|
|
|
#endif /* PKCS1_H */
|