Openssl_crypto.h 897 B

123456789
  1. #include<stdint.h>
  2. #include<string.h>
  3. int ecdh_key_gen(unsigned char* pub_key_x, unsigned char* pub_key_y, unsigned char* priv_key);
  4. unsigned long check_ecdh_public_key(unsigned char* given_key_x, unsigned char* given_key_y);
  5. unsigned long compute_ecdh_shared_key(unsigned char* given_key_x, unsigned char* given_key_y, unsigned char* priv_key, unsigned char* derived_key);
  6. int generate_sha256_hash(const unsigned char *message, size_t message_len, unsigned char *digest);
  7. int aes_gcm_128(int enc, unsigned char *key, unsigned char *iv, unsigned char* plaintext, uint32_t plaintext_len, unsigned char *ciphertext, uint32_t* op_ciphertext_len, uint8_t* tag);
  8. int base64_decoding_wrapper(unsigned char* src, unsigned char* dest, uint32_t length);
  9. int compute_ecdsa_signature(unsigned char* signature_data, uint32_t signature_data_length, unsigned char* own_private_key, unsigned char* signature);