Searched refs:associatedData (Results 1 – 4 of 4) sorted by relevance
/external/ukey2/src/main/java/com/google/security/cryptauth/lib/securemessage/ |
D | SecureMessageBuilder.java | 44 private byte[] associatedData; field in SecureMessageBuilder 60 this.associatedData = null; in reset() 117 public SecureMessageBuilder setAssociatedData(@Nullable byte[] associatedData) { in setAssociatedData() argument 118 this.associatedData = associatedData; in setAssociatedData() 150 return createSignedResult(signingKey, sigType, headerAndBody, associatedData); in buildSignedCleartextMessage() 204 CryptoOps.digest(CryptoOps.concat(header, associatedData)), in buildSignCryptedMessage() 209 associatedDataToBeSigned = associatedData; in buildSignCryptedMessage() 245 if (associatedData != null) { in buildHeader() 246 result.setAssociatedDataLength(associatedData.length); in buildHeader() 268 Key signingKey, SigType sigType, byte[] headerAndBody, @Nullable byte[] associatedData) in createSignedResult() argument [all …]
|
D | SecureMessageParser.java | 104 SecureMessage secmsg, Key verificationKey, SigType sigType, @Nullable byte[] associatedData) in parseSignedCleartextMessage() argument 114 associatedData, in parseSignedCleartextMessage() 151 @Nullable byte[] associatedData) in parseSignCryptedMessage() argument 172 associatedData, in parseSignCryptedMessage() 209 byte[] expectedTag = CryptoOps.digest(CryptoOps.concat(headerBytes, associatedData)); in parseSignCryptedMessage() 232 @Nullable byte[] associatedData, in verifyHeaderAndBody() argument 240 byte[] signedData = suppressAssociatedData ? data : CryptoOps.concat(data, associatedData); in verifyHeaderAndBody() 259 int associatedDataLength = associatedData == null ? 0 : associatedData.length; in verifyHeaderAndBody()
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/spec/ |
D | AEADParameterSpec.java | 15 private final byte[] associatedData; field in AEADParameterSpec 36 public AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData) in AEADParameterSpec() argument 41 this.associatedData = Arrays.clone(associatedData); in AEADParameterSpec() 61 return Arrays.clone(associatedData); in getAssociatedData()
|
/external/bouncycastle/repackaged/bcprov/src/main/java/com/android/org/bouncycastle/jcajce/spec/ |
D | AEADParameterSpec.java | 17 private final byte[] associatedData; field in AEADParameterSpec 38 public AEADParameterSpec(byte[] nonce, int macSizeInBits, byte[] associatedData) in AEADParameterSpec() argument 43 this.associatedData = Arrays.clone(associatedData); in AEADParameterSpec() 63 return Arrays.clone(associatedData); in getAssociatedData()
|