-
Notifications
You must be signed in to change notification settings - Fork 232
/
crypto_const.go
26 lines (23 loc) · 1.17 KB
/
crypto_const.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package osscrypto
// for client sider encryption oss meta
const (
OssClientSideEncryptionKey string = "client-side-encryption-key"
OssClientSideEncryptionStart = "client-side-encryption-start"
OssClientSideEncryptionCekAlg = "client-side-encryption-cek-alg"
OssClientSideEncryptionWrapAlg = "client-side-encryption-wrap-alg"
OssClientSideEncryptionMatDesc = "client-side-encryption-matdesc"
OssClientSideEncryptionUnencryptedContentLength = "client-side-encryption-unencrypted-content-length"
OssClientSideEncryptionUnencryptedContentMD5 = "client-side-encryption-unencrypted-content-md5"
OssClientSideEncryptionDataSize = "client-side-encryption-data-size"
OssClientSideEncryptionPartSize = "client-side-encryption-part-size"
)
// encryption Algorithm
const (
RsaCryptoWrap string = "RSA/NONE/PKCS1Padding"
KmsAliCryptoWrap string = "KMS/ALICLOUD"
AesCtrAlgorithm string = "AES/CTR/NoPadding"
)
// user agent tag for client encryption
const (
EncryptionUaSuffix string = "OssEncryptionClient"
)