Home
last modified time | relevance | path

Searched refs:nonce (Results 1 – 8 of 8) sorted by relevance

/libcore/ojluni/src/main/java/javax/crypto/spec/
DChaCha20ParameterSpec.java49 private final byte[] nonce; field in ChaCha20ParameterSpec
63 public ChaCha20ParameterSpec(byte[] nonce, int counter) { in ChaCha20ParameterSpec() argument
66 Objects.requireNonNull(nonce, "Nonce must be non-null"); in ChaCha20ParameterSpec()
67 this.nonce = nonce.clone(); in ChaCha20ParameterSpec()
68 if (this.nonce.length != NONCE_LENGTH) { in ChaCha20ParameterSpec()
81 return nonce.clone(); in getNonce()
/libcore/luni/src/test/java/tests/javax/crypto/spec/
DChaCha20ParameterSpecTest.java36 byte[] nonce = new byte[] { in constructor_withValidValues()
41 ChaCha20ParameterSpec spec = new ChaCha20ParameterSpec(nonce, counter); in constructor_withValidValues()
44 assertArrayEquals(nonce, spec.getNonce()); in constructor_withValidValues()
54 byte[] nonce = new byte[] { 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07 }; in constructor_withNonceTooShort()
55 assertThrows(IllegalArgumentException.class, () -> new ChaCha20ParameterSpec(nonce, in constructor_withNonceTooShort()
/libcore/ojluni/src/main/java/sun/security/timestamp/
DTimestampToken.java81 private BigInteger nonce; field in TimestampToken
115 return nonce; in getNonce()
161 nonce = d.getBigInteger(); in parse()
/libcore/ojluni/src/main/java/sun/security/provider/certpath/
DOCSPRequest.java85 private byte[] nonce; field in OCSPRequest
122 nonce = ext.getValue(); in encodeBytes()
154 return nonce; in getNonce()
DOCSPResponse.java330 byte[] nonce = null; in OCSPResponse()
344 nonce = ext.getExtensionValue(); in OCSPResponse()
353 responseNonce = nonce; in OCSPResponse()
391 X509Certificate responderCert, Date date, byte[] nonce) in verify() argument
589 if (nonce != null) { in verify()
590 if (responseNonce != null && !Arrays.equals(nonce, responseNonce)) { in verify()
DRevocationChecker.java703 byte[] nonce = null;
706 nonce = ext.getValue();
710 responderCert, params.date(), nonce);
/libcore/ojluni/annotations/flagged_api/javax/crypto/spec/
DChaCha20ParameterSpec.annotated.java33 public ChaCha20ParameterSpec(byte[] nonce, int counter) { throw new RuntimeException("Stub!"); } in ChaCha20ParameterSpec() argument
/libcore/ojluni/annotations/hiddenapi/sun/security/timestamp/
DTimestampToken.java74 private java.math.BigInteger nonce; field in TimestampToken