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.
Dependents: AES_example shaun_larada Smartage
Fork of Crypto by
StreamCipher.cpp
00001 #include "StreamCipher.h" 00002 00003 00004 StreamCipher::StreamCipher() 00005 { 00006 } 00007 00008 CIPHER_TYPE StreamCipher::getType() const 00009 { 00010 return STREAM_CIPHER; 00011 } 00012 00013 void StreamCipher::encrypt(uint8_t *out, uint8_t *in, uint32_t length) 00014 { 00015 for(uint32_t i = 0; i < length; ++i) 00016 out[i] = encryptByte(in[i]); 00017 } 00018 00019 void StreamCipher::decrypt(uint8_t *out, uint8_t *in, uint32_t length) 00020 { 00021 for(uint32_t i = 0; i < length; ++i) 00022 out[i] = decryptByte(in[i]); 00023 }
Generated on Mon Jul 18 2022 02:59:39 by
 1.7.2
 1.7.2 
    