org.bouncycastle.util.Arrays.clone()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(128)

本文整理了Java中org.bouncycastle.util.Arrays.clone()方法的一些代码示例,展示了Arrays.clone()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Arrays.clone()方法的具体详情如下:
包路径:org.bouncycastle.util.Arrays
类名称:Arrays
方法名:clone

Arrays.clone介绍

暂无

代码示例

代码示例来源:origin: syncany/syncany

byte[] alteredCiphertext = Arrays.clone(originalCiphertext);		
alteredCiphertext[8] = (byte) (alteredCiphertext[8] ^ 0x08); // <<< Change 100$ to 900$

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Return the secret associated with this spec.
 *
 * @return a copy of the secret.
 */
public byte[] getSecret()
{
  return Arrays.clone(secret);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public DecryptedPOP(BodyPartID bodyPartID, AlgorithmIdentifier thePOPAlgID, byte[] thePOP)
{
  this.bodyPartID = bodyPartID;
  this.thePOPAlgID = thePOPAlgID;
  this.thePOP = Arrays.clone(thePOP);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Return the encoded string as a byte array.
 *
 * @return the actual bytes making up the encoded body of the T61 string.
 */
public byte[] getOctets()
{
  return Arrays.clone(string);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Return a byte array representation of our contained String.
 *
 * @return a byte array representing our contents.
 */
public byte[] getOctets() 
{
  return Arrays.clone(string);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Return the nonce (IV) value to be associated with message.
 *
 * @return block cipher IV for message.
 */
public byte[] getNonce()
{
  return Arrays.clone(nonce);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public Gost2814789KeyWrapParameters(ASN1ObjectIdentifier encryptionParamSet, byte[] ukm)
{
  this.encryptionParamSet = encryptionParamSet;
  this.ukm = Arrays.clone(ukm);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public ECCCMSSharedInfo(
  AlgorithmIdentifier keyInfo,
  byte[] suppPubInfo)
{
  this.keyInfo = keyInfo;
  this.entityUInfo = null;
  this.suppPubInfo = Arrays.clone(suppPubInfo);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public MessageImprint(
  AlgorithmIdentifier hashAlgorithm,
  byte[]              hashedMessage)
{
  this.hashAlgorithm = hashAlgorithm;
  this.hashedMessage = Arrays.clone(hashedMessage);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public X931SecureRandomBuilder setDateTimeVector(byte[] dateTimeVector)
{
  this.dateTimeVector = Arrays.clone(dateTimeVector);
  return this;
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Set the personalization string for DRBG SecureRandoms created by this builder
 * @param personalizationString  the personalisation string for the underlying DRBG.
 * @return the current builder.
 */
public SP800SecureRandomBuilder setPersonalizationString(byte[] personalizationString)
{
  this.personalizationString = Arrays.clone(personalizationString);
  return this;
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Gives the signature of the whole body. Type of signature is given in
 * the Iso7816CertificateBody.Iso7816PublicKey.ASN1ObjectIdentifier
 *
 * @return the signature of the body.
 */
public byte[] getSignature()
{
  return Arrays.clone(signature);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Return the associated data associated with this parameter spec.
 *
 * @return the associated data, null if there isn't any.
 */
public byte[] getAssociatedData()
{
  return Arrays.clone(associatedData);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public byte[] getEncoding()
  {
    return Arrays.clone(time);
  }
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public XMSSMTPublicKey(byte[] publicSeed, byte[] root)
{
  this.publicSeed = Arrays.clone(publicSeed);
  this.root = Arrays.clone(root);
}

代码示例来源:origin: org.xipki/security

/**
 * Base constructor.
 *
 * @param id the ID string associated with this usage of SM2.
 */
public XiSM2ParameterSpec(byte[] id) {
 if (id == null) {
  throw new NullPointerException("id string cannot be null");
 }
 this.id = Arrays.clone(id);
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

protected byte[] engineGenerateSecret()
  throws IllegalStateException
{
  byte[] rv = Arrays.clone(shared);
  Arrays.fill(shared, (byte)0);
  return rv;
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

/**
 * Obtains the value of the {@link #PARAM_TYPE_KEY_IDENTIFIER key identifier parameter}, or
 * <code>null</code> if not set.
 */
public byte[] getKeyIdentifier()
{
  return Arrays.clone((byte[])parameters.get(Integers.valueOf(PARAM_TYPE_KEY_IDENTIFIER)));
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

public void init(CipherParameters params)
{
  secret = Arrays.clone(((KeyParameter)params).getKey());
  reset();
}

代码示例来源:origin: org.bouncycastle/bcprov-debug-jdk15on

private DSTU4145ParameterSpec(ECDomainParameters parameters, ECParameterSpec ecParameterSpec, byte[] dke)
{
  super(ecParameterSpec.getCurve(), ecParameterSpec.getGenerator(), ecParameterSpec.getOrder(), ecParameterSpec.getCofactor());
  this.parameters = parameters;
  this.dke = Arrays.clone(dke);
}

相关文章