All Downloads are FREE. Search and download functionalities are using the official Maven repository.

java.com.ionic.sdk.cipher.aes.AesCipher Maven / Gradle / Ivy

Go to download

The Ionic Java SDK provides an easy-to-use interface to the Ionic Platform.

There is a newer version: 2.9.0
Show newest version
package com.ionic.sdk.cipher.aes;

/**
 * Constants related to the use of the AES algorithm within the SDK.
 */
public final class AesCipher {

    /**
     * Constructor.
     * http://checkstyle.sourceforge.net/config_design.html#FinalClass
     */
    private AesCipher() {
    }

    /**
     * Length in bits of Ionic infrastructure AES keys.
     */
    public static final int KEY_BITS = 256;

    /**
     * Length in bytes of Ionic infrastructure AES keys.
     */
    public static final int KEY_BYTES = (KEY_BITS / Byte.SIZE);

    /**
     * Length in bytes of initialization vector used when protecting data using Ionic AES cipher.
     */
    public static final int SIZE_IV = 16;

    /**
     * Label for AES algorithm.
     */
    public static final String ALGORITHM = "AES";

    /**
     * Label for AES algorithm, CTR transform (used by ChunkCrypto).
     */
    public static final String TRANSFORM_CTR = "AES/CTR/NoPadding";

    /**
     * Label for AES algorithm, GCM transform (used in communications with ionic.com).
     */
    public static final String TRANSFORM_GCM = "AES/GCM/NoPadding";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy