Fork of François Berder Crypto, fixed AES CBC and small rework

Dependents:   AES_example shaun_larada Smartage

Fork of Crypto by Francois Berder

Committer:
feb11
Date:
Thu Sep 12 15:08:51 2013 +0000
Revision:
5:06cd9c8afa0b
change API & small improvements in SHA-2

Who changed what in which revision?

UserRevisionLine numberNew contents of line
feb11 5:06cd9c8afa0b 1 #include "DES.h"
feb11 5:06cd9c8afa0b 2
feb11 5:06cd9c8afa0b 3
feb11 5:06cd9c8afa0b 4 DES::DES(uint8_t *key):
feb11 5:06cd9c8afa0b 5 Cipher()
feb11 5:06cd9c8afa0b 6 {
feb11 5:06cd9c8afa0b 7 // loadKey(key);
feb11 5:06cd9c8afa0b 8 }
feb11 5:06cd9c8afa0b 9
feb11 5:06cd9c8afa0b 10 void DES::encrypt(uint8_t *out, uint8_t *in, uint32_t length)
feb11 5:06cd9c8afa0b 11 {
feb11 5:06cd9c8afa0b 12
feb11 5:06cd9c8afa0b 13 }
feb11 5:06cd9c8afa0b 14
feb11 5:06cd9c8afa0b 15 void DES::decrypt(uint8_t *out, uint8_t *in, uint32_t length)
feb11 5:06cd9c8afa0b 16 {
feb11 5:06cd9c8afa0b 17
feb11 5:06cd9c8afa0b 18 }
feb11 5:06cd9c8afa0b 19
feb11 5:06cd9c8afa0b 20 uint32_t DES::getBlockSize() const
feb11 5:06cd9c8afa0b 21 {
feb11 5:06cd9c8afa0b 22 return 8;
feb11 5:06cd9c8afa0b 23 }
feb11 5:06cd9c8afa0b 24
feb11 5:06cd9c8afa0b 25 CIPHER_TYPE DES::getType() const
feb11 5:06cd9c8afa0b 26 {
feb11 5:06cd9c8afa0b 27 return STREAM_CIPHER;
feb11 5:06cd9c8afa0b 28 }