Package org.bouncycastle.jcajce.provider.asymmetric.ec

Examples of org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey


            PublicKey publicKey, PrivateKey privateKey)
            throws GeneralSecurityException {
        try {
            // BC appears to be happier with BCECPublicKeys:
            // see BC's IESCipher.engineInit's check for ECPublicKey
            publicKey = new BCECPublicKey((ECPublicKey) publicKey, null);

            return _cryptIES(input, publicKey, true);
        } catch (GeneralSecurityException e) {
            log.error("Error while encrypting key", e);
            throw e;
View Full Code Here

TOP

Related Classes of org.bouncycastle.jcajce.provider.asymmetric.ec.BCECPublicKey

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.