This library implements some hash and cryptographic algorithms.
Dependents: ES_CW2_Starter_JIN EMBEDDED_CW2 EMBEDDED_CW2_Final Spinnybois ... more
Fork of Crypto by
cipher/TDES.h@15:634f9c4cbab1, 2018-03-09 (annotated)
- Committer:
- estott
- Date:
- Fri Mar 09 10:10:16 2018 +0000
- Revision:
- 15:634f9c4cbab1
- Parent:
- 8:a090264e9b2d
Reduced flash footprint by removing __forceinline directive in SHA2_32.c
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
feb11 | 7:2dbbdfb08123 | 1 | #ifndef TDES_H |
feb11 | 7:2dbbdfb08123 | 2 | #define TDES_H |
feb11 | 7:2dbbdfb08123 | 3 | |
feb11 | 8:a090264e9b2d | 4 | #include "DES.h" |
feb11 | 8:a090264e9b2d | 5 | |
feb11 | 8:a090264e9b2d | 6 | class TDES : public BlockCipher |
feb11 | 8:a090264e9b2d | 7 | { |
feb11 | 8:a090264e9b2d | 8 | public : |
feb11 | 8:a090264e9b2d | 9 | |
feb11 | 8:a090264e9b2d | 10 | TDES(uint8_t *key1, uint8_t *key2, uint8_t *key3); |
feb11 | 8:a090264e9b2d | 11 | TDES(uint8_t *key1, uint8_t *key2, uint8_t *key3, uint8_t *iv); |
feb11 | 8:a090264e9b2d | 12 | |
feb11 | 8:a090264e9b2d | 13 | private : |
feb11 | 8:a090264e9b2d | 14 | |
feb11 | 8:a090264e9b2d | 15 | virtual void encryptBlock(uint8_t *out, uint8_t *in); |
feb11 | 8:a090264e9b2d | 16 | virtual void decryptBlock(uint8_t *out, uint8_t *in); |
feb11 | 8:a090264e9b2d | 17 | |
feb11 | 8:a090264e9b2d | 18 | |
feb11 | 8:a090264e9b2d | 19 | DES a,b,c; |
feb11 | 8:a090264e9b2d | 20 | }; |
feb11 | 8:a090264e9b2d | 21 | |
feb11 | 7:2dbbdfb08123 | 22 | #endif |