File tree Expand file tree Collapse file tree 3 files changed +8
-3
lines changed
src/main/java/com/qcloud/cos/internal/crypto Expand file tree Collapse file tree 3 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ All notable changes to this project will be documented in this file.
5
5
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
6
6
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
7
7
8
+ ## [ 5.6.58]
9
+ - make aes ctr encryption mode can set iv
10
+
8
11
## [ 5.6.57]
9
12
- update AudioAuditing api
10
13
- add VideoAuditing new params
Original file line number Diff line number Diff line change 4
4
<modelVersion >4.0.0</modelVersion >
5
5
<groupId >com.qcloud</groupId >
6
6
<artifactId >cos_api</artifactId >
7
- <version >5.6.57 </version >
7
+ <version >5.6.58 </version >
8
8
<packaging >jar</packaging >
9
9
<name >cos-java-sdk</name >
10
10
<description >java sdk for qcloud cos</description >
Original file line number Diff line number Diff line change 20
20
21
21
class AesCtr extends ContentCryptoScheme {
22
22
23
+ private byte [] iv = null ;
24
+
23
25
@ Override String getKeyGeneratorAlgorithm () { return AES_GCM .getKeyGeneratorAlgorithm (); }
24
26
@ Override String getCipherAlgorithm () { return "AES/CTR/NoPadding" ; }
25
27
@ Override int getKeyLengthInBits () { return AES_GCM .getKeyLengthInBits (); }
26
28
@ Override int getBlockSizeInBytes () { return AES_GCM .getBlockSizeInBytes (); }
27
29
@ Override int getIVLengthInBytes () { return 16 ; }
28
30
@ Override long getMaxPlaintextSize () { return MAX_CTR_BYTES ; }
29
- @ Override byte [] getIV () { return null ; }
30
- @ Override void setIV (byte [] iv ) {}
31
+ @ Override byte [] getIV () { return this . iv ; }
32
+ @ Override void setIV (byte [] iv ) { this . iv = iv ; }
31
33
32
34
@ Override
33
35
byte [] adjustIV (byte [] iv , long byteOffset ) {
You can’t perform that action at this time.
0 commit comments