Package com.zaranux.client.crypto.spec

Examples of com.zaranux.client.crypto.spec.RSAKeyGenParameterSpec


            throws InvalidAlgorithmParameterException {
        if (params instanceof RSAKeyGenParameterSpec == false) {
            throw new InvalidAlgorithmParameterException
                ("Params must be instance of RSAKeyGenParameterSpec");
        }
        RSAKeyGenParameterSpec rsaSpec = (RSAKeyGenParameterSpec)params;
        keySize = rsaSpec.getKeysize();
        publicExponent = rsaSpec.getPublicExponent();
        this.random = random;
        if (keySize < 512) {
            throw new InvalidAlgorithmParameterException
                ("Key size must be at least 512 bits");
        }
View Full Code Here

TOP

Related Classes of com.zaranux.client.crypto.spec.RSAKeyGenParameterSpec

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.