mirror of
				https://github.com/0xFEEDC0DE64/arduino-esp32.git
				synced 2025-11-03 23:51:39 +01:00 
			
		
		
		
	
		
			
	
	
		
			24 lines
		
	
	
		
			649 B
		
	
	
	
		
			C
		
	
	
	
	
	
		
		
			
		
	
	
			24 lines
		
	
	
		
			649 B
		
	
	
	
		
			C
		
	
	
	
	
	
| 
								 | 
							
								/*
							 | 
						||
| 
								 | 
							
								 * RSA
							 | 
						||
| 
								 | 
							
								 * Copyright (c) 2006, Jouni Malinen <j@w1.fi>
							 | 
						||
| 
								 | 
							
								 *
							 | 
						||
| 
								 | 
							
								 * This software may be distributed under the terms of the BSD license.
							 | 
						||
| 
								 | 
							
								 * See README for more details.
							 | 
						||
| 
								 | 
							
								 */
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#ifndef RSA_H
							 | 
						||
| 
								 | 
							
								#define RSA_H
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								struct crypto_rsa_key;
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								struct crypto_rsa_key *
							 | 
						||
| 
								 | 
							
								crypto_rsa_import_public_key(const u8 *buf, size_t len);
							 | 
						||
| 
								 | 
							
								struct crypto_rsa_key *
							 | 
						||
| 
								 | 
							
								crypto_rsa_import_private_key(const u8 *buf, size_t len);
							 | 
						||
| 
								 | 
							
								size_t crypto_rsa_get_modulus_len(struct crypto_rsa_key *key);
							 | 
						||
| 
								 | 
							
								int crypto_rsa_exptmod(const u8 *in, size_t inlen, u8 *out, size_t *outlen,
							 | 
						||
| 
								 | 
							
										       struct crypto_rsa_key *key, int use_private);
							 | 
						||
| 
								 | 
							
								void crypto_rsa_free(struct crypto_rsa_key *key);
							 | 
						||
| 
								 | 
							
								
							 | 
						||
| 
								 | 
							
								#endif /* RSA_H */
							 |