Searched refs:hexToBytes (Results 1 – 10 of 10) sorted by relevance
22 private byte[] hexToBytes(String s) { in hexToBytes() method in HmacDrbgTest30 hexToBytes("ca851911349384bffe89de1cbdc46e6831e44d34a4fb935ee285dd14b71a7488"); in testHmacDrbgNistCase0()31 byte[] nonce = hexToBytes("659ba96c601dc69fc902940805ec0ca8"); in testHmacDrbgNistCase0()32 byte[] expected = hexToBytes( in testHmacDrbgNistCase0()49 hexToBytes("79737479ba4e7642a221fcfd1b820b134e9e3540a35bb48ffae29c20f5418ea3"); in testHmacDrbgNistCase1()50 byte[] nonce = hexToBytes("3593259c092bef4129bc2c6c9e19f343"); in testHmacDrbgNistCase1()51 byte[] expected = hexToBytes( in testHmacDrbgNistCase1()68 hexToBytes("b340907445b97a8b589264de4a17c0bea11bb53ad72f9f33297f05d2879d898d"); in testHmacDrbgNistCase2()69 byte[] nonce = hexToBytes("65cb27735d83c0708f72684ea58f7ee5"); in testHmacDrbgNistCase2()70 byte[] expected = hexToBytes( in testHmacDrbgNistCase2()[all …]
46 this.pt = TestUtil.hexToBytes(message); in EaxTestVector()47 this.aad = TestUtil.hexToBytes(aad); in EaxTestVector()48 this.ct = TestUtil.hexToBytes(ciphertext); in EaxTestVector()54 this.parameters = new GCMParameterSpec(128, TestUtil.hexToBytes(nonce)); in EaxTestVector()55 this.key = new SecretKeySpec(TestUtil.hexToBytes(keyMaterial), "AES"); in EaxTestVector()
68 this.pt = TestUtil.hexToBytes(message); in GcmTestVector()69 this.aad = TestUtil.hexToBytes(aad); in GcmTestVector()70 this.ct = TestUtil.hexToBytes(ciphertext + tag); in GcmTestVector()74 this.parameters = new GCMParameterSpec(tagLengthInBits, TestUtil.hexToBytes(nonce)); in GcmTestVector()75 this.key = new SecretKeySpec(TestUtil.hexToBytes(keyMaterial), "AES"); in GcmTestVector()
1141 byte[] signatureBytes = TestUtil.hexToBytes(signature); in testVectors()1209 byte[] signatureBytes = TestUtil.hexToBytes(signature); in testLegacySignatures()
1479 byte[] encoded = TestUtil.hexToBytes(ENCODED_PUBLIC_KEY); in testEncodeDecodePublic()1501 X509EncodedKeySpec spec = new X509EncodedKeySpec(TestUtil.hexToBytes(encoded)); in testModifiedPublicKeyDecoding()
138 byte[] encoded = TestUtil.hexToBytes(encodedHex); in testEncodedPublicKey()
110 byte[] encoded = TestUtil.hexToBytes(pub); in getPublicKey()492 return new X509EncodedKeySpec(TestUtil.hexToBytes(encoded)); in getX509EncodedKeySpec()
621 byte[] signatureBytes = TestUtil.hexToBytes(signature); in testVectors()
693 byte[] signatureBytes = TestUtil.hexToBytes(signature); in testVectors()
56 public static byte[] hexToBytes(String hex) throws IllegalArgumentException { in hexToBytes() method in TestUtil