Searched refs:detachedContent (Results 1 – 2 of 2) sorted by relevance
/cts/tests/tests/identity/src/android/security/identity/cts/ |
D | UtilUnitTests.java | 273 byte[] detachedContent = new byte[] {}; in coseSignAndVerify() 274 byte[] sig = Util.coseSign1Sign(keyPair.getPrivate(), data, detachedContent, null); in coseSignAndVerify() 275 assertTrue(Util.coseSign1CheckSignature(sig, detachedContent, keyPair.getPublic())); in coseSignAndVerify() 284 byte[] detachedContent = new byte[] {0x20, 0x21, 0x22, 0x23, 0x24}; in coseSignAndVerifyDetachedContent() 285 byte[] sig = Util.coseSign1Sign(keyPair.getPrivate(), data, detachedContent, null); in coseSignAndVerifyDetachedContent() 286 assertTrue(Util.coseSign1CheckSignature(sig, detachedContent, keyPair.getPublic())); in coseSignAndVerifyDetachedContent() 295 byte[] detachedContent = new byte[] {0x20, 0x21, 0x22, 0x23, 0x24}; in coseSignAndVerifySingleCertificate() 298 byte[] sig = Util.coseSign1Sign(keyPair.getPrivate(), data, detachedContent, certs); in coseSignAndVerifySingleCertificate() 299 assertTrue(Util.coseSign1CheckSignature(sig, detachedContent, keyPair.getPublic())); in coseSignAndVerifySingleCertificate() 308 byte[] detachedContent = new byte[] {0x20, 0x21, 0x22, 0x23, 0x24}; in coseSignAndVerifyMultipleCertificates() [all …]
|
D | Util.java | 300 byte[] detachedContent) { in coseBuildToBeSigned() argument 318 array.add(detachedContent); in coseBuildToBeSigned() 422 byte[] detachedContent, in coseSign1Sign() argument 427 int detachedContentLen = (detachedContent != null ? detachedContent.length : 0); in coseSign1Sign() 437 byte[] toBeSigned = coseBuildToBeSigned(protectedHeadersBytes, data, detachedContent); in coseSign1Sign() 477 byte[] detachedContent, in coseSign1CheckSignature() argument 525 int detachedContentLen = (detachedContent != null ? detachedContent.length : 0); in coseSign1CheckSignature() 531 payload, detachedContent); in coseSign1CheckSignature() 639 byte[] detachedContent) { in coseBuildToBeMACed() argument 657 array.add(detachedContent); in coseBuildToBeMACed() [all …]
|