private void init(PrivateKeyInfo keyInfo) throws IOException { this.attributes = keyInfo.getAttributes(); this.params = (NHPrivateKeyParameters)PrivateKeyFactory.createKey(keyInfo); }
private void init(PrivateKeyInfo keyInfo) throws IOException { this.attributes = keyInfo.getAttributes(); this.keyParams = (QTESLAPrivateKeyParameters)PrivateKeyFactory.createKey(keyInfo); }
BCEdDSAPrivateKey(PrivateKeyInfo keyInfo) throws IOException { this.hasPublicKey = keyInfo.hasPublicKey(); this.attributes = (keyInfo.getAttributes() != null) ? keyInfo.getAttributes().getEncoded() : null; populateFromPrivateKeyInfo(keyInfo); }
BCXDHPrivateKey(PrivateKeyInfo keyInfo) throws IOException { this.hasPublicKey = keyInfo.hasPublicKey(); this.attributes = (keyInfo.getAttributes() != null) ? keyInfo.getAttributes().getEncoded() : null; populateFromPrivateKeyInfo(keyInfo); }
private void init(PrivateKeyInfo keyInfo) throws IOException { this.attributes = keyInfo.getAttributes(); XMSSKeyParams keyParams = XMSSKeyParams.getInstance(keyInfo.getPrivateKeyAlgorithm().getParameters()); this.treeDigest = keyParams.getTreeDigest().getAlgorithm(); this.keyParams = (XMSSPrivateKeyParameters)PrivateKeyFactory.createKey(keyInfo); }
private void init(PrivateKeyInfo keyInfo) throws IOException { this.attributes = keyInfo.getAttributes(); XMSSMTKeyParams keyParams = XMSSMTKeyParams.getInstance(keyInfo.getPrivateKeyAlgorithm().getParameters()); this.treeDigest = keyParams.getTreeDigest().getAlgorithm(); this.keyParams = (XMSSMTPrivateKeyParameters)PrivateKeyFactory.createKey(keyInfo); }
private void init(PrivateKeyInfo keyInfo) throws IOException { this.attributes = keyInfo.getAttributes(); this.treeDigest = SPHINCS256KeyParams.getInstance(keyInfo.getPrivateKeyAlgorithm().getParameters()).getTreeDigest().getAlgorithm(); this.params = (SPHINCSPrivateKeyParameters)PrivateKeyFactory.createKey(keyInfo); }