YPC  0.2.0
openssl.h
1 #pragma once
2 #include "ypc/core/byte.h"
3 #include "zallocator.h"
4 
5 namespace ypc {
6 namespace openssl {
7 class sgx {
8 public:
9  static int rijndael128_cmac_msg(const uint8_t *cmac_128bit_key,
10  const uint8_t *p_src, uint32_t src_len,
11  uint8_t *mac_128bit);
12 
13  static int rijndael128GCM_encrypt(const uint8_t *aes_gcm_128bit_key,
14  const uint8_t *p_src, uint32_t src_len,
15  uint8_t *p_dst, const uint8_t *p_iv,
16  uint32_t iv_len, const uint8_t *p_add,
17  uint32_t aad_len,
18  uint8_t *aes_gcm_128_bit_out_mac);
19 
20  static int rijndael128GCM_decrypt(const uint8_t *aes_gcm_128bit_key,
21  const uint8_t *p_src, uint32_t src_len,
22  uint8_t *p_dst, const uint8_t *p_iv,
23  uint32_t iv_len, const uint8_t *p_add,
24  uint32_t aad_len,
25  const uint8_t *aes_gcm_128bit_in_mac);
26 
27  static int sha256_msg(const uint8_t *message, size_t size,
28  uint8_t *sha256_hash);
29 };
30 } // namespace openssl
31 } // namespace ypc
32 
byte.h
ypc::openssl::sgx
Definition: openssl.h:7