crypto_const.go 1.2 KB

1234567891011121314151617181920212223242526
  1. package osscrypto
  2. // for client sider encryption oss meta
  3. const (
  4. OssClientSideEncryptionKey string = "client-side-encryption-key"
  5. OssClientSideEncryptionStart = "client-side-encryption-start"
  6. OssClientSideEncryptionCekAlg = "client-side-encryption-cek-alg"
  7. OssClientSideEncryptionWrapAlg = "client-side-encryption-wrap-alg"
  8. OssClientSideEncryptionMatDesc = "client-side-encryption-matdesc"
  9. OssClientSideEncryptionUnencryptedContentLength = "client-side-encryption-unencrypted-content-length"
  10. OssClientSideEncryptionUnencryptedContentMD5 = "client-side-encryption-unencrypted-content-md5"
  11. OssClientSideEncryptionDataSize = "client-side-encryption-data-size"
  12. OssClientSideEncryptionPartSize = "client-side-encryption-part-size"
  13. )
  14. // encryption Algorithm
  15. const (
  16. RsaCryptoWrap string = "RSA/NONE/PKCS1Padding"
  17. KmsAliCryptoWrap string = "KMS/ALICLOUD"
  18. AesCtrAlgorithm string = "AES/CTR/NoPadding"
  19. )
  20. // user agent tag for client encryption
  21. const (
  22. EncryptionUaSuffix string = "OssEncryptionClient"
  23. )