OSDN Git Service

Create ossClient.go (#574)
[bytom/vapor.git] / vendor / github.com / aliyun / aliyun-oss-go-sdk / oss / crypto / crypto_const.go
1 package osscrypto
2
3 // for client sider encryption oss meta
4 const (
5         OssClientSideEncryptionKey                      string = "client-side-encryption-key"
6         OssClientSideEncryptionStart                           = "client-side-encryption-start"
7         OssClientSideEncryptionCekAlg                          = "client-side-encryption-cek-alg"
8         OssClientSideEncryptionWrapAlg                         = "client-side-encryption-wrap-alg"
9         OssClientSideEncryptionMatDesc                         = "client-side-encryption-matdesc"
10         OssClientSideEncryptionUnencryptedContentLength        = "client-side-encryption-unencrypted-content-length"
11         OssClientSideEncryptionUnencryptedContentMD5           = "client-side-encryption-unencrypted-content-md5"
12         OssClientSideEncryptionDataSize                        = "client-side-encryption-data-size"
13         OssClientSideEncryptionPartSize                        = "client-side-encryption-part-size"
14 )
15
16 // encryption Algorithm
17 const (
18         RsaCryptoWrap    string = "RSA/NONE/PKCS1Padding"
19         KmsAliCryptoWrap string = "KMS/ALICLOUD"
20         AesCtrAlgorithm  string = "AES/CTR/NoPadding"
21 )
22
23 // user agent tag for client encryption
24 const (
25         EncryptionUaSuffix string = "OssEncryptionClient"
26 )