This library implements some hash and cryptographic algorithms.
Dependents: mBuinoBlinky PB_Emma_Ethernet SLOTrashHTTP Garagem ... more
Cipher.h
00001 #ifndef CIPHER_H 00002 #define CIPHER_H 00003 00004 #include <stdint.h> 00005 00006 enum CIPHER_TYPE 00007 { 00008 STREAM_CIPHER, 00009 BLOCK_CIPHER 00010 }; 00011 00012 class Cipher 00013 { 00014 public : 00015 00016 virtual ~Cipher(); 00017 00018 virtual void encrypt(uint8_t *out, uint8_t *in, uint32_t length) = 0; 00019 virtual void decrypt(uint8_t *out, uint8_t *in, uint32_t length) = 0; 00020 00021 virtual CIPHER_TYPE getType() const = 0; 00022 00023 }; 00024 00025 00026 #endif
Generated on Tue Jul 12 2022 18:54:16 by 1.7.2