Package org.conscrypt

Class ScryptKeySpec

  • All Implemented Interfaces:
    java.security.spec.KeySpec

    public class ScryptKeySpec
    extends java.lang.Object
    implements java.security.spec.KeySpec
    Mirrors the class of the same name from BouncyCastle.
    • Field Detail

      • password

        private final char[] password
      • salt

        private final byte[] salt
      • costParameter

        private final int costParameter
      • blockSize

        private final int blockSize
      • parallelizationParameter

        private final int parallelizationParameter
      • keyOutputBits

        private final int keyOutputBits
    • Constructor Detail

      • ScryptKeySpec

        public ScryptKeySpec​(char[] password,
                             byte[] salt,
                             int costParameter,
                             int blockSize,
                             int parallelizationParameter,
                             int keyOutputBits)
    • Method Detail

      • getPassword

        public char[] getPassword()
      • getSalt

        public byte[] getSalt()
      • getCostParameter

        public int getCostParameter()
      • getBlockSize

        public int getBlockSize()
      • getParallelizationParameter

        public int getParallelizationParameter()
      • getKeyLength

        public int getKeyLength()