c-libp2p/include/libp2p/crypto/aes.h

12 lines
405 B
C
Raw Normal View History

2017-03-02 21:14:52 +00:00
#pragma once
/**
* Encrypt a block of text
* @param input the text to encrypt
* @param input_size the length of the array
* @param output where the output will be placed
* @param output_size the length of the memory allocated for output
* @returns true(1) on success, otherwise false(0)
*/
int libp2p_crypto_aes_encrypt(char* input, size_t input_size, unsigned char* output, size_t& output_size);