public SPHINCSPublicKeyParameters(byte[] keyData) { super(false); this.keyData = Arrays.clone(keyData); }
/** * Returns the input keying material or seed. * * @return the keying material */ public byte[] getIKM() { return Arrays.clone(ikm); }
/** * Returns the info field, which may be empty (null is converted to empty). * * @return the info field, never null */ public byte[] getInfo() { return Arrays.clone(info); } }
/** * Returns the leaf value. * * @return the leaf value */ public byte[] getLeaf() { return Arrays.clone(leaf); }
public DecryptedPOP(BodyPartID bodyPartID, AlgorithmIdentifier thePOPAlgID, byte[] thePOP) { this.bodyPartID = bodyPartID; this.thePOPAlgID = thePOPAlgID; this.thePOP = Arrays.clone(thePOP); }
public DSTU4145Params(ASN1ObjectIdentifier namedCurve, byte[] dke) { this.namedCurve = namedCurve; this.dke = Arrays.clone(dke); }
public SPHINCSPrivateKeyParameters(byte[] keyData) { super(true); this.keyData = Arrays.clone(keyData); }
public ServerSRPParams(BigInteger N, BigInteger g, byte[] s, BigInteger B) { this.N = N; this.g = g; this.s = Arrays.clone(s); this.B = B; }
public NHPublicKeyParameters(byte[] pubData) { super(false); this.pubData = Arrays.clone(pubData); }
public byte[] getPublicPointY() { if ((options & Y) != 0) { return Arrays.clone(publicPointY); } else { return null; } }
public byte[] getUserKeyingMaterial() { return Arrays.clone(userKeyingMaterial); } }
/** * @deprecated use getSBox() */ public byte[] getSbox() { return Arrays.clone(sBox); }
public byte[] getUserKeyingMaterial() { return Arrays.clone(userKeyingMaterial); } }
public EncryptedSecretKeyData(AlgorithmIdentifier keyEncryptionAlgorithm, byte[] encryptedKeyData) { this.keyEncryptionAlgorithm = keyEncryptionAlgorithm; this.encryptedKeyData = new DEROctetString(Arrays.clone(encryptedKeyData)); }
/** * Obtains the value of the {@link #PARAM_TYPE_KEY key parameter}, or <code>null</code> if not * set. */ public byte[] getKey() { return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_KEY))); }
/** * Constructor to allow use of a particular sbox with GOST28147 * @see GOST28147Engine#getSBox(String) */ public GOST3411Digest(byte[] sBoxParam) { sBox = Arrays.clone(sBoxParam); cipher.init(true, new ParametersWithSBox(null, sBox)); reset(); }
private XMSSMTPublicKey(ASN1Sequence seq) { if (!ASN1Integer.getInstance(seq.getObjectAt(0)).getValue().equals(BigInteger.valueOf(0))) { throw new IllegalArgumentException("unknown version of sequence"); } this.publicSeed = Arrays.clone(DEROctetString.getInstance(seq.getObjectAt(1)).getOctets()); this.root = Arrays.clone(DEROctetString.getInstance(seq.getObjectAt(2)).getOctets()); }
public PublishTrustAnchors(BigInteger seqNumber, AlgorithmIdentifier hashAlgorithm, byte[][] anchorHashes) { this.seqNumber = new ASN1Integer(seqNumber); this.hashAlgorithm = hashAlgorithm; ASN1EncodableVector v = new ASN1EncodableVector(); for (int i = 0; i != anchorHashes.length; i++) { v.add(new DEROctetString(Arrays.clone(anchorHashes[i]))); } this.anchorHashes = new DERSequence(v); }