mmcau
Overview
Memory-Mapped Cryptographic Acceleration Unit (MMCAU)
This project is a demonstration program that uses the KSDK software for encryption/decryption sample data using AES-CBC, DES3-CBC and Hash algorithms MD5, SHA1 and SHA256.
Running the demo
When the demo runs successfully, from the terminal you can see:
……………………….. MMCAU DRIVER EXAMPLE ………………………..
Testing input string: Once upon a midnight dreary, while I pondered weak and weary, Over many a quaint and curious volume of forgotten lore, While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber doorIts some visitor, I muttered, tapping at my chamber doorOnly this, and nothing more.
———————————– AES-128-CBC method ————————————– AES-128 CBC Encryption of 320 bytes. AES-128 CBC encryption finished. Speed 0.788520 MB/s.
AES-128 CBC Decryption of 320 bytes. AES-128 CBC decryption finished. Speed 0.879958 MB/s. Decrypted string : Once upon a midnight dreary, while I pondered weak and weary, Over many a quaint and curious volume of forgotten lore, While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber doorIts some visitor, I muttered, tapping at my chamber doorOnly this, and nothing more.
———————————– AES-192-CBC method ————————————– AES-192 CBC Encryption of 320 bytes. AES-192 CBC encryption finished. Speed 0.733355 MB/s.
AES-192 CBC Decryption of 320 bytes. AES-192 CBC decryption finished. Speed 0.874051 MB/s. Decrypted string : Once upon a midnight dreary, while I pondered weak and weary, Over many a quaint and curious volume of forgotten lore, While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber doorIts some visitor, I muttered, tapping at my chamber doorOnly this, and nothing more.
———————————– AES-256-CBC method ————————————– AES-256 CBC Encryption of 320 bytes. AES-256 CBC encryption finished. Speed 0.729700 MB/s.
AES-256 CBC Decryption of 320 bytes. AES-256 CBC decryption finished. Speed 0.868863 MB/s. Decrypted string : Once upon a midnight dreary, while I pondered weak and weary, Over many a quaint and curious volume of forgotten lore, While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber doorIts some visitor, I muttered, tapping at my chamber doorOnly this, and nothing more.
———————————– DES3-CBC method ————————————– DES3 CBC Encryption of 320 bytes. DES3 CBC encryption finished. Speed 0.642086 MB/s.
DES3 CBC decryption of 320 bytes. DES3 CBC decryption finished. Speed 0.748056 MB/s. Decrypted string : Once upon a midnight dreary, while I pondered weak and weary, Over many a quaint and curious volume of forgotten lore, While I nodded, nearly napping, suddenly there came a tapping, As of some one gently rapping, rapping at my chamber doorIts some visitor, I muttered, tapping at my chamber doorOnly this, and nothing more.
————————————— HASH —————————————— Computing hash of 128 bytes. Input string: Once upon a midnight dreary, while I pondered, weak and weary, Over many a quaint and curious volume of forgotten lore.
Computed SHA1 at speed 0.320078 MB/s: 29479755d6408ea49cb74c79949f6c303e1f4549
Computed SHA256 at speed 0.368955 MB/s: 15ae3b1120b98cfb516bafe14ba2d6a2fcada8727584111c95f355e1033bf89d
Computed MD5 at speed 0.190410 MB/s: 9e107d9d372bb6826bd81d3542a419d6
………….. THE END OF THE MMCAU DRIVER EXAMPLE …………………………..