com.aliyun.oss.crypto

## 类 CryptoScheme

- java.lang.Object
- - com.aliyun.oss.crypto.CryptoScheme

- 直接已知子类:
    AesCtr

      public abstract class CryptoScheme
      extends Object

- - ### 字段概要

    字段
    限定符和类型 | 字段和说明
    --- | ---
    `static CryptoScheme` | `AES_CTR`
    `static int` | `BLOCK_SIZE`

  - ### 构造器概要

    构造器
    构造器和说明
    `CryptoScheme()`

  - ### 方法概要

    方法
    限定符和类型 | 方法和说明
    --- | ---
    `abstract byte[]` | `adjustIV(byte[] iv, long dataStartPos)`
    `CryptoCipher` | `createCryptoCipher(SecretKey cek, byte[] iv, int cipherMode, Provider provider)`
    `static CryptoScheme` | `fromCEKAlgo(String cekAlgo)`
    `abstract String` | `getContentChiperAlgorithm()`
    `abstract int` | `getContentChiperIVLength()`
    `abstract String` | `getKeyGeneratorAlgorithm()`
    `abstract int` | `getKeyLengthInBits()`
    `static byte[]` | `incrementBlocks(byte[] counter, long blockDelta)` Increment the rightmost 64 bits of a 16-byte counter by the specified delta.
    `CryptoCipher` | `newCryptoCipher(Cipher cipher, SecretKey cek, int cipherMode)` This is a factory method to create CryptoCipher.

    - ### 从类继承的方法 java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### 字段详细资料

    - #### BLOCK_SIZE

          public static final int BLOCK_SIZE

      另请参阅:
        常量字段值

    - #### AES_CTR

          public static final CryptoScheme AES_CTR

  - ### 构造器详细资料

    - #### CryptoScheme

          public CryptoScheme()

  - ### 方法详细资料

    - #### getKeyGeneratorAlgorithm

          public abstract String getKeyGeneratorAlgorithm()

    - #### getKeyLengthInBits

          public abstract int getKeyLengthInBits()

    - #### getContentChiperAlgorithm

          public abstract String getContentChiperAlgorithm()

    - #### getContentChiperIVLength

          public abstract int getContentChiperIVLength()

    - #### adjustIV

          public abstract byte[] adjustIV(byte[] iv,
                        long dataStartPos)

    - #### newCryptoCipher

          public CryptoCipher newCryptoCipher(Cipher cipher,
                                     SecretKey cek,
                                     int cipherMode)

      This is a factory method to create CryptoCipher.

    - #### createCryptoCipher

          public CryptoCipher createCryptoCipher(SecretKey cek,
                                        byte[] iv,
                                        int cipherMode,
                                        Provider provider)

    - #### incrementBlocks

          public static byte[] incrementBlocks(byte[] counter,
                               long blockDelta)

      Increment the rightmost 64 bits of a 16-byte counter by the specified delta. Both the specified delta and the resultant value must stay within the capacity of 64 bits. (Package private for testing purposes.)
      参数:
        `counter` - a 16-byte counter.
        `blockDelta` - the number of blocks (16-byte) to increment

    - #### fromCEKAlgo

          public static CryptoScheme fromCEKAlgo(String cekAlgo)

Copyright © 2020. All Rights Reserved.