@Test(dataProvider = "byteProvider") public void testByteArrayToLong(byte[] bytes, long expected) { Assert.assertEquals(CryptoUtil.getLong(bytes), expected); }
static long getLong(final byte[] bytes) { return new BigInteger(bytes).longValue(); }
CryptoUtil { static long getLong(final byte[] bytes) { return new BigInteger(bytes).longValue(); } }
CryptoUtil { static long getLong(final byte[] bytes) { return new BigInteger(bytes).longValue(); }  }
CryptoUtil { static long getLong(final byte[] bytes) { return new BigInteger(bytes).longValue(); }  static byte[] convertDEREncodedSignatureToJWSConcatenated(final byte[] derEncodedSignatureValue); static byte[] convertJWSConcatenatedToDEREncodedSignature(final byte[] concatenatedSignatureValue); static SecretKey createAESKey(); static boolean isUnlimitedStrengthPolicyAvailable(); static SecretKey convertBase64KeyToSecretKey(final String base64AESKey); static String encryptECB(final byte[] concatenatedHashValue, final Long turnoverCounter, final SecretKey symmetricKey,int turnOverCounterLengthInBytes); static long decryptECB(final byte[] concatenatedHashValue, final String base64EncryptedTurnOverValue,
      final SecretKey symmetricKey); static String encryptCFB(final byte[] concatenatedHashValue, final Long turnoverCounter, final SecretKey symmetricKey,int turnOverCounterLengthInBytes); static long decryptCFB(final byte[] concatenatedHashValue, final String base64EncryptedTurnOverValue,
      final SecretKey symmetricKey); static String encryptCTR(final byte[] concatenatedHashValue,  Long turnoverCounter, final SecretKey symmetricKey, int turnOverCounterLengthInBytes); static long decryptCTR(final byte[] concatenatedHashValue, final String base64EncryptedTurnOverValue,
      final SecretKey symmetricKey); static long decryptTurnOverCounter(final String encryptedTurnOverCounterBase64, final String hashAlgorithm,
      final String cashBoxIDUTF8String, final String receiptIdentifierUTF8String, final String aesKeyBase64); static long decryptTurnOverCounter(final String encryptedTurnOverCounterBase64, final String hashAlgorithm,
      final String cashBoxIDUTF8String, final String receiptIdentifierUTF8String, final SecretKey aesKey); static String computeChainingValue(final String input, final RKSuiteIdentifier rkSuite); static String hashData(final String data); }
CryptoUtil { static long getLong(final byte[] bytes) { return new BigInteger(bytes).longValue(); }  static byte[] convertDEREncodedSignatureToJWSConcatenated(final byte[] derEncodedSignatureValue); static byte[] convertJWSConcatenatedToDEREncodedSignature(final byte[] concatenatedSignatureValue); static SecretKey createAESKey(); static boolean isUnlimitedStrengthPolicyAvailable(); static SecretKey convertBase64KeyToSecretKey(final String base64AESKey); static String encryptECB(final byte[] concatenatedHashValue, final Long turnoverCounter, final SecretKey symmetricKey,int turnOverCounterLengthInBytes); static long decryptECB(final byte[] concatenatedHashValue, final String base64EncryptedTurnOverValue,
      final SecretKey symmetricKey); static String encryptCFB(final byte[] concatenatedHashValue, final Long turnoverCounter, final SecretKey symmetricKey,int turnOverCounterLengthInBytes); static long decryptCFB(final byte[] concatenatedHashValue, final String base64EncryptedTurnOverValue,
      final SecretKey symmetricKey); static String encryptCTR(final byte[] concatenatedHashValue,  Long turnoverCounter, final SecretKey symmetricKey, int turnOverCounterLengthInBytes); static long decryptCTR(final byte[] concatenatedHashValue, final String base64EncryptedTurnOverValue,
      final SecretKey symmetricKey); static long decryptTurnOverCounter(final String encryptedTurnOverCounterBase64, final String hashAlgorithm,
      final String cashBoxIDUTF8String, final String receiptIdentifierUTF8String, final String aesKeyBase64); static long decryptTurnOverCounter(final String encryptedTurnOverCounterBase64, final String hashAlgorithm,
      final String cashBoxIDUTF8String, final String receiptIdentifierUTF8String, final SecretKey aesKey); static String computeChainingValue(final String input, final RKSuiteIdentifier rkSuite); static String hashData(final String data);  }