Home
last modified time | relevance | path

Searched refs:dataToSign (Results 1 – 7 of 7) sorted by relevance

/packages/modules/IPsec/src/java/com/android/internal/net/eap/statemachine/
DEapAkaPrimeMethodStateMachine.java265 ByteBuffer dataToSign = ByteBuffer.allocate(dataToSignLen); in generateAndPersistEapAkaKeys() local
266 dataToSign.put(MK_DATA_PREFIX.getBytes(StandardCharsets.US_ASCII)); in generateAndPersistEapAkaKeys()
267 dataToSign.put(mIdentity); in generateAndPersistEapAkaKeys()
274 dataToSign.array(), in generateAndPersistEapAkaKeys()
319 ByteBuffer dataToSign = ByteBuffer.allocate(sLength); in deriveCkIkPrime() local
320 dataToSign.put((byte) FC); in deriveCkIkPrime()
321 dataToSign.put(atKdfInput.networkName); in deriveCkIkPrime()
322 dataToSign.putShort((short) atKdfInput.networkName.length); in deriveCkIkPrime()
323 dataToSign.put(sqnXorAk); in deriveCkIkPrime()
324 dataToSign.putShort((short) SQN_XOR_AK_LEN); in deriveCkIkPrime()
[all …]
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/crypto/
DAesXCbcImpl.java62 public byte[] signBytes(byte[] keyBytes, byte[] dataToSign, boolean needTruncation) { in signBytes() argument
65 boolean isPaddingNeeded = dataToSign.length % blockSize != 0; in signBytes()
67 byte[] paddedData = dataToSign; in signBytes()
69 paddedData = padData(dataToSign, blockSize); in signBytes()
132 private static byte[] padData(byte[] dataToSign, int blockSize) { in padData() argument
133 int dataLen = dataToSign.length; in padData()
140 paddedData.put(dataToSign).put(padding); in padData()
DIkeMacPrf.java133 ByteBuffer dataToSign = in generateRekeyedSKeySeed() local
135 dataToSign.put(sharedDhKey).put(nonceInit).put(nonceResp); in generateRekeyedSKeySeed()
137 return signBytes(skD, dataToSign.array()); in generateRekeyedSKeySeed()
154 public byte[] generateKeyMat(byte[] keyBytes, byte[] dataToSign, int keyMaterialLen) { in generateKeyMat() argument
155 return KeyGenerationUtils.prfPlus(this, keyBytes, dataToSign, keyMaterialLen); in generateKeyMat()
DIkeMac.java73 public byte[] signBytes(byte[] keyBytes, byte[] dataToSign) { in signBytes() argument
80 .signBytes(keyBytes, dataToSign, true /*needTruncation*/); in signBytes()
84 .signBytes(keyBytes, dataToSign, false /*needTruncation*/); in signBytes()
90 ByteBuffer inputBuffer = ByteBuffer.wrap(dataToSign); in signBytes()
/packages/modules/IPsec/src/java/com/android/internal/net/crypto/
DKeyGenerationUtils.java42 ByteSigner byteSigner, byte[] keyBytes, byte[] dataToSign, int keyMaterialLen) { in prfPlus() argument
51 ByteBuffer.allocate(previousMac.length + dataToSign.length + padLen); in prfPlus()
52 dataToSignBuffer.put(previousMac).put(dataToSign).put(padValue); in prfPlus()
79 byte[] signBytes(byte[] keyBytes, byte[] dataToSign); in signBytes() argument
/packages/modules/IPsec/src/java/com/android/internal/net/eap/crypto/
DHmacSha256ByteSigner.java47 public byte[] signBytes(byte[] keyBytes, byte[] dataToSign) { in signBytes() argument
51 return mac.doFinal(dataToSign); in signBytes()
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/testmode/
DDeterministicSecureRandom.java74 public byte[] signBytes(byte[] keyBytes, byte[] dataToSign) { in signBytes() argument
75 mByteSignerMac.update(dataToSign); in signBytes()