projects
/
crypto_lab2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Update the report and change RSA padding to PKCS#1 v2.
[crypto_lab2.git]
/
labo2-fsharp
/
CryptoFile
/
UnitTests.fs
diff --git
a/labo2-fsharp/CryptoFile/UnitTests.fs
b/labo2-fsharp/CryptoFile/UnitTests.fs
index
e43d7b4
..
203f789
100644
(file)
--- a/
labo2-fsharp/CryptoFile/UnitTests.fs
+++ b/
labo2-fsharp/CryptoFile/UnitTests.fs
@@
-28,7
+28,7
@@
module UnitTests =
let testAES () =
let plaintext = "There is no place like 127.0.0.1"
let memory = new MemoryStream ()
- let key = Crypto.rand
32
+ let key = Crypto.rand
16
let iv = Crypto.rand 16
let input = encryptAES key iv memory