Class AsymmetricKeyCreatorEcBc

    • Constructor Detail

      • AsymmetricKeyCreatorEcBc

        public AsymmetricKeyCreatorEcBc​(org.bouncycastle.jce.spec.ECParameterSpec ecParameters)
        The constructor.
        Parameters:
        ecParameters - the ECParameterSpec.
      • AsymmetricKeyCreatorEcBc

        public AsymmetricKeyCreatorEcBc​(org.bouncycastle.jce.spec.ECParameterSpec ecParameters,
                                        RandomFactory randomFactory)
        The constructor.
        Parameters:
        ecParameters - the ECParameterSpec.
        randomFactory - the random factory.
    • Method Detail

      • createKeyPair

        public AsymmetricKeyPairEcBc createKeyPair​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey,
                                                   org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
        Parameters:
        privateKey - the PrivateKey.
        publicKey - the corresponding PublicKey.
        Returns:
        the AsymmetricKeyPair.
      • getKeyLength

        public int getKeyLength​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
        Parameters:
        privateKey - the PrivateKey.
        Returns:
        the key length of the given key in bits.
      • verifyKey

        public void verifyKey​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPrivateKey privateKey)
        Description copied from interface: AsymmetricKeyCreator
        Verify that the given key matches the criteria of this key creator such as key length.
        Parameters:
        privateKey - the PrivateKey to verify.
      • getKeyLength

        public int getKeyLength​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
        Parameters:
        publicKey - the PublicKey.
        Returns:
        the key length of the given key in bits.
      • verifyKey

        public void verifyKey​(org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey publicKey)
        Description copied from interface: AsymmetricKeyCreator
        Verify that the given key matches the criteria of this key creator such as key length.
        Parameters:
        publicKey - the PublicKey to verify.