Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of Crypto_light by
cipher/TDES.h@8:a090264e9b2d, 2013-09-14 (annotated)
- Committer:
- feb11
- Date:
- Sat Sep 14 20:54:59 2013 +0000
- Revision:
- 8:a090264e9b2d
- Parent:
- 7:2dbbdfb08123
refactored public API for ciphers & added TDES
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 |
