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.
55The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
66and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
77
8+ ## [ 5.6.58]
9+ - make aes ctr encryption mode can set iv
10+
811## [ 5.6.57]
912- update AudioAuditing api
1013- add VideoAuditing new params
Original file line number Diff line number Diff line change 44 <modelVersion >4.0.0</modelVersion >
55 <groupId >com.qcloud</groupId >
66 <artifactId >cos_api</artifactId >
7- <version >5.6.57 </version >
7+ <version >5.6.58 </version >
88 <packaging >jar</packaging >
99 <name >cos-java-sdk</name >
1010 <description >java sdk for qcloud cos</description >
Original file line number Diff line number Diff line change 2020
2121class AesCtr extends ContentCryptoScheme {
2222
23+ private byte [] iv = null ;
24+
2325 @ Override String getKeyGeneratorAlgorithm () { return AES_GCM .getKeyGeneratorAlgorithm (); }
2426 @ Override String getCipherAlgorithm () { return "AES/CTR/NoPadding" ; }
2527 @ Override int getKeyLengthInBits () { return AES_GCM .getKeyLengthInBits (); }
2628 @ Override int getBlockSizeInBytes () { return AES_GCM .getBlockSizeInBytes (); }
2729 @ Override int getIVLengthInBytes () { return 16 ; }
2830 @ 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 ; }
3133
3234 @ Override
3335 byte [] adjustIV (byte [] iv , long byteOffset ) {
You can’t perform that action at this time.
0 commit comments