mirror of https://github.com/OpenIPC/firmware.git
78 lines
1.8 KiB
Diff
78 lines
1.8 KiB
Diff
diff -drupN a/crypto/testmgr.c b/crypto/testmgr.c
|
|
--- a/crypto/testmgr.c 2018-08-06 17:23:04.000000000 +0300
|
|
+++ b/crypto/testmgr.c 2022-06-12 05:28:14.000000000 +0300
|
|
@@ -3238,6 +3238,36 @@ static const struct alg_test_desc alg_te
|
|
}
|
|
}
|
|
}, {
|
|
+ .alg = "ecb(speck128)",
|
|
+ .test = alg_test_skcipher,
|
|
+ .suite = {
|
|
+ .cipher = {
|
|
+ .enc = {
|
|
+ .vecs = speck128_enc_tv_template,
|
|
+ .count = ARRAY_SIZE(speck128_enc_tv_template)
|
|
+ },
|
|
+ .dec = {
|
|
+ .vecs = speck128_dec_tv_template,
|
|
+ .count = ARRAY_SIZE(speck128_dec_tv_template)
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }, {
|
|
+ .alg = "ecb(speck64)",
|
|
+ .test = alg_test_skcipher,
|
|
+ .suite = {
|
|
+ .cipher = {
|
|
+ .enc = {
|
|
+ .vecs = speck64_enc_tv_template,
|
|
+ .count = ARRAY_SIZE(speck64_enc_tv_template)
|
|
+ },
|
|
+ .dec = {
|
|
+ .vecs = speck64_dec_tv_template,
|
|
+ .count = ARRAY_SIZE(speck64_dec_tv_template)
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }, {
|
|
.alg = "ecb(tea)",
|
|
.test = alg_test_skcipher,
|
|
.suite = {
|
|
@@ -4057,6 +4087,36 @@ static const struct alg_test_desc alg_te
|
|
}
|
|
}
|
|
}
|
|
+ }, {
|
|
+ .alg = "xts(speck128)",
|
|
+ .test = alg_test_skcipher,
|
|
+ .suite = {
|
|
+ .cipher = {
|
|
+ .enc = {
|
|
+ .vecs = speck128_xts_enc_tv_template,
|
|
+ .count = ARRAY_SIZE(speck128_xts_enc_tv_template)
|
|
+ },
|
|
+ .dec = {
|
|
+ .vecs = speck128_xts_dec_tv_template,
|
|
+ .count = ARRAY_SIZE(speck128_xts_dec_tv_template)
|
|
+ }
|
|
+ }
|
|
+ }
|
|
+ }, {
|
|
+ .alg = "xts(speck64)",
|
|
+ .test = alg_test_skcipher,
|
|
+ .suite = {
|
|
+ .cipher = {
|
|
+ .enc = {
|
|
+ .vecs = speck64_xts_enc_tv_template,
|
|
+ .count = ARRAY_SIZE(speck64_xts_enc_tv_template)
|
|
+ },
|
|
+ .dec = {
|
|
+ .vecs = speck64_xts_dec_tv_template,
|
|
+ .count = ARRAY_SIZE(speck64_xts_dec_tv_template)
|
|
+ }
|
|
+ }
|
|
+ }
|
|
}, {
|
|
.alg = "xts(twofish)",
|
|
.test = alg_test_skcipher,
|