diff options
author | Othmar Gsenger <otti@anytun.org> | 2014-11-19 19:56:32 +0000 |
---|---|---|
committer | Othmar Gsenger <otti@anytun.org> | 2014-11-19 19:56:32 +0000 |
commit | 2d712656364cf982a56fa4e7a8f1eab714240266 (patch) | |
tree | a629610fe84386a3e184399a55003736bf9f7569 /src/crypto/openssl.h | |
parent | fixed linker error (diff) |
openssl crypt new implementation added
Diffstat (limited to 'src/crypto/openssl.h')
-rw-r--r-- | src/crypto/openssl.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/crypto/openssl.h b/src/crypto/openssl.h index 2f3704e..956be99 100644 --- a/src/crypto/openssl.h +++ b/src/crypto/openssl.h @@ -57,12 +57,14 @@ namespace crypto { virtual void calcMasterKeySalt(std::string passphrase, uint16_t length, Buffer& masterkey , Buffer& mastersalt); virtual uint32_t cipher(uint8_t* in, uint32_t ilen, uint8_t* out, uint32_t olen, const Buffer& masterkey, const Buffer& mastersalt, role_t role, seq_nr_t seq_nr, sender_id_t sender_id, mux_t mux); virtual uint32_t decipher(uint8_t* in, uint32_t ilen, uint8_t* out, uint32_t olen, const Buffer& masterkey, const Buffer& mastersalt, role_t role, seq_nr_t seq_nr, sender_id_t sender_id, mux_t mux); - + virtual void deriveKey(kd_dir_t dir, satp_prf_label_t label, role_t role, seq_nr_t seq_nr, sender_id_t sender_id, mux_t mux, const Buffer& masterkey, const Buffer& mastersalt, Buffer& key); // virtual virtual ~Openssl(); virtual std::string printType(); //static static bool init(); + //implemented + void calc(uint8_t* in, uint32_t ilen, uint8_t* out, uint32_t olen, const Buffer& key, cipher_aesctr_ctr_t * ctr); }; }; |