Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F97659021
D33530.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
870 B
Referenced Files
None
Subscribers
None
D33530.diff
View Options
diff --git a/stand/libsa/geli/geliboot_crypto.c b/stand/libsa/geli/geliboot_crypto.c
--- a/stand/libsa/geli/geliboot_crypto.c
+++ b/stand/libsa/geli/geliboot_crypto.c
@@ -42,7 +42,7 @@
cipherInstance cipher;
struct aes_xts_ctx xtsctx, *ctxp;
size_t xts_len;
- int err, blks, i;
+ int err, blks;
switch (algo) {
case CRYPTO_AES_CBC:
@@ -85,16 +85,12 @@
switch (enc) {
case GELI_DECRYPT:
- for (i = 0; i < datasize; i += AES_XTS_BLOCKSIZE) {
- enc_xform_aes_xts.decrypt(ctxp, data + i,
- data + i);
- }
+ enc_xform_aes_xts.decrypt_multi(ctxp, data, data,
+ datasize);
break;
case GELI_ENCRYPT:
- for (i = 0; i < datasize; i += AES_XTS_BLOCKSIZE) {
- enc_xform_aes_xts.encrypt(ctxp, data + i,
- data + i);
- }
+ enc_xform_aes_xts.encrypt_multi(ctxp, data, data,
+ datasize);
break;
}
break;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Oct 1, 3:26 PM (22 h, 35 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
13246724
Default Alt Text
D33530.diff (870 B)
Attached To
Mode
D33530: geliboot: Use the multi-block functions for AES-XTS.
Attached
Detach File
Event Timeline
Log In to Comment