File tree 3 files changed +8
-7
lines changed
3 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 27
27
submodules : recursive
28
28
29
29
# Runs a set of commands using the runners shell
30
- # - name: build boost
31
- # run: python3 build.py --setup --boost --par=4
30
+ # - name: build boost
31
+ # run: python3 build.py --setup --boost --par=4
32
32
33
33
# - name: build relic
34
34
# run: python3 build.py --setup --relic --par=4
37
37
# run: python3 build.py --setup --sodium --par=4
38
38
39
39
- name : build cryptoTools
40
- run : python3 build.py --par=4 # -DENABLE_RELIC=ON -D ENABLE_SODIUM=ON -DENABLE_CIRCUITS=ON
40
+ run : python3 build.py --par=4 -DENABLE_RELIC=ON -D ENABLE_SODIUM=ON -DENABLE_CIRCUITS=ON
41
41
42
42
- name : unit tests
43
43
run : ./out/build/linux/frontend_cryptoTools/frontend_cryptoTools -u
Original file line number Diff line number Diff line change @@ -313,7 +313,7 @@ namespace osuCrypto {
313
313
}
314
314
315
315
template <AESTypes type>
316
- void AES<type>::ecbEncCounterMode(block baseIdx, u64 blockLength, block* ciphertext) const
316
+ inline void AES<type>::ecbEncCounterMode(block baseIdx, u64 blockLength, block* ciphertext) const
317
317
{
318
318
319
319
constexpr u64 step = 8 ;
Original file line number Diff line number Diff line change @@ -70,13 +70,14 @@ namespace osuCrypto {
70
70
71
71
if (mBytesIdx == mBufferByteCapacity )
72
72
{
73
- if (lengthu8 >= 8 * sizeof (block))
73
+ while (lengthu8 >= 8 * sizeof (block))
74
74
{
75
- span <block> b ((block*)destu8, lengthu8 / sizeof (block)) ;
75
+ oc::AlignedArray <block, 8 > b ;
76
76
mAes .ecbEncCounterMode (mBlockIdx , b.size (), b.data ());
77
+ memcpy (destu8, &b, sizeof (b));
77
78
mBlockIdx += b.size ();
78
79
79
- step = b. size () * sizeof (block );
80
+ step = sizeof (b );
80
81
81
82
destu8 += step;
82
83
lengthu8 -= step;
You can’t perform that action at this time.
0 commit comments