Searched refs:salt (Results 1 – 4 of 4) sorted by relevance
/tools/apksig/src/main/java/com/android/apksig/internal/apk/v4/ |
D | V4Signature.java | 35 public final byte[] salt; // used exactly as in fs-verity, 32 bytes max field in V4Signature.HashingInfo 38 HashingInfo(int hashAlgorithm, byte log2BlockSize, byte[] salt, byte[] rawRootHash) { in HashingInfo() argument 41 this.salt = salt; in HashingInfo() 49 byte[] salt = readBytes(buffer); in fromByteArray() 51 return new HashingInfo(hashAlgorithm, log2BlockSize, salt, rawRootHash); in fromByteArray() 55 final int size = 4/*hashAlgorithm*/ + 1/*log2BlockSize*/ + bytesSize(this.salt) in toByteArray() 60 writeBytes(buffer, this.salt); in toByteArray() 140 hashingInfo.salt) + bytesSize(hashingInfo.rawRootHash) + bytesSize( in getSignedData() 148 writeBytes(buffer, hashingInfo.salt); in getSignedData()
|
D | V4SchemeSigner.java | 116 final byte[] salt = null; in generateV4Signature() 138 salt, rootHash); in generateV4Signature()
|
/tools/apksig/src/test/java/com/android/apksig/internal/util/ |
D | VerityTreeBuilderTest.java | 61 private static void expectRootHash(String inputResource, byte[] salt, String expectedRootHash) in expectRootHash() argument 63 assertEquals(expectedRootHash, generateRootHash(inputResource, salt)); in expectRootHash() 66 private static String generateRootHash(String inputResource, byte[] salt) throws IOException { in generateRootHash() argument 69 try (VerityTreeBuilder builder = new VerityTreeBuilder(salt)) { in generateRootHash()
|
/tools/apksig/src/main/java/com/android/apksig/internal/util/ |
D | VerityTreeBuilder.java | 86 public VerityTreeBuilder(byte[] salt) throws NoSuchAlgorithmException { in VerityTreeBuilder() argument 87 mSalt = salt; in VerityTreeBuilder()
|