Searched refs:cipher (Results 1 – 15 of 15) sorted by relevance
360 public final EspCipher cipher; field in PacketUtils.EspHeader389 EspCipher cipher, in EspHeader() argument395 this.cipher = cipher; in EspHeader()398 if (cipher instanceof EspCipherNull && auth instanceof EspAuthNull) { in EspHeader()402 if (cipher instanceof EspAeadCipher && !(auth instanceof EspAuthNull)) { in EspHeader()422 cipher instanceof EspAeadCipher ? ((EspAeadCipher) cipher).icvLen : auth.icvLen; in length()424 payload.length, cipher.ivLen, cipher.blockSize, icvLen * 8); in length()439 espPayloadBuffer.put(cipher.getCipherText(nextHeader, payload, spi, seqNum)); in addPacketBytes()607 final Cipher cipher = Cipher.getInstance(algoName); in getCipherText() local608 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCipherText()[all …]
87 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt() local90 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt()91 encryptedData = new EncryptedData(cipher.doFinal(data), cipher.getIV()); in encrypt()121 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt() local125 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()126 decryptedData = cipher.doFinal(encryptedData.getEncryptedData()); in decrypt()
1585 private static @Cipher int parseWpaCipher(int cipher) { in parseWpaCipher() argument1586 switch (cipher) { in parseWpaCipher()1595 + Integer.toHexString(cipher)); in parseWpaCipher()1600 private static @Cipher int parseRsnCipher(int cipher) { in parseRsnCipher() argument1601 switch (cipher) { in parseRsnCipher()1622 + Integer.toHexString(cipher)); in parseRsnCipher()1882 private String cipherToString(@Cipher int cipher) { in cipherToString() argument1883 switch (cipher) { in cipherToString()
28 std::unique_ptr<Aes128Gcm> cipher; in TEST() local29 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(nullptr, 42)); }, ""); in TEST()34 std::unique_ptr<Aes128Gcm> cipher; in TEST() local35 ASSERT_DEATH({ cipher.reset(new Aes128Gcm(material, 0)); }, ""); in TEST()
74 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in doEncryption() local75 cipher.init(mode, new SecretKeySpec(secret, "AES")); in doEncryption()76 return cipher.doFinal(data); in doEncryption()
697 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in encrypt() local701 cipher.init(Cipher.ENCRYPT_MODE, secretKeyReference); in encrypt()703 .setEncryptedData(ByteString.copyFrom(cipher.doFinal(data.getBytes()))) in encrypt()704 .setInitVector(ByteString.copyFrom(cipher.getIV())).build(); in encrypt()748 Cipher cipher = Cipher.getInstance(CIPHER_ALGORITHM); in decrypt() local754 cipher.init(Cipher.DECRYPT_MODE, secretKeyReference, spec); in decrypt()755 decryptedDataBytes = cipher.doFinal(protobuf.getEncryptedData().toByteArray()); in decrypt()
577 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt() local578 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec); in encrypt()579 return cipher.doFinal(data); in encrypt()599 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt() local600 cipher.init(Cipher.DECRYPT_MODE, secretKeySpec); in decrypt()601 return cipher.doFinal(encryptedData); in decrypt()
319 Cipher cipher = Cipher.getInstance("AES/GCM/NoPadding"); in testDecryptProtectedPayload() local320 cipher.init( in testDecryptProtectedPayload()324 cipher.updateAAD(buildEncStructure(protectedHeaders, new byte[0])); in testDecryptProtectedPayload()326 byte[] protectedData = cipher.doFinal(encryptedContent); in testDecryptProtectedPayload()
466 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in encrypt() local467 cipher.init(Cipher.ENCRYPT_MODE, key); in encrypt()468 return cipher.doFinal(payload); in encrypt()477 Cipher cipher = Cipher.getInstance("AES/ECB/NoPadding"); in decrypt() local478 cipher.init(Cipher.DECRYPT_MODE, key); in decrypt()479 return cipher.doFinal(encrypted); in decrypt()
400 Cipher cipher = Cipher.getInstance(AES_CBC); in getCiphertext() local401 cipher.init(Cipher.ENCRYPT_MODE, secretKeySpec, ivParameterSpec); in getCiphertext()402 byte[] encrypted = cipher.doFinal(getByteArrayFromBuffer(paddedPayload)); in getCiphertext()
590 Cipher cipher = mock(Cipher.class); in getEncryptedIdentity_WithRfc4648() local606 lenient().when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentity_WithRfc4648()607 when(cipher.doFinal(any(byte[].class))).thenReturn(permanentIdentity.getBytes()); in getEncryptedIdentity_WithRfc4648()634 Cipher cipher = mock(Cipher.class); in getEncryptedIdentityFailed() local641 lenient().when(Cipher.getInstance(anyString())).thenReturn(cipher); in getEncryptedIdentityFailed()642 when(cipher.doFinal(any(byte[].class))).thenThrow(BadPaddingException.class); in getEncryptedIdentityFailed()
924 Cipher cipher = Cipher.getInstance(IMSI_CIPHER_TRANSFORMATION); in encryptDataUsingPublicKey() local925 cipher.init(Cipher.ENCRYPT_MODE, key); in encryptDataUsingPublicKey()926 byte[] encryptedBytes = cipher.doFinal(data); in encryptDataUsingPublicKey()
1dictionary=main:en_us,locale=en_US,description=English (US),date ...
1dictionary=main:en_gb,locale=en_GB,description=English (UK),date ...
1dictionary=main:en,locale=en,description=English,date=1414726273, ...