From 28fa18278c1f3a87722d5e8b78f581526a30bb38 Mon Sep 17 00:00:00 2001 From: Yuuta Liang Date: Sat, 14 Oct 2023 05:35:17 +0800 Subject: Fix lint Signed-off-by: Yuuta Liang --- src/test/model/pki/AlgorithmIdentifierTest.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/test/model/pki/AlgorithmIdentifierTest.java') diff --git a/src/test/model/pki/AlgorithmIdentifierTest.java b/src/test/model/pki/AlgorithmIdentifierTest.java index 8bcc80e..cbd2e7c 100644 --- a/src/test/model/pki/AlgorithmIdentifierTest.java +++ b/src/test/model/pki/AlgorithmIdentifierTest.java @@ -72,12 +72,12 @@ public class AlgorithmIdentifierTest { @Test void testEncode() throws ParseException { assertArrayEquals(new Byte[]{ - 0x30, 0x0D, // SEQUENCE AlgorithmIdentifier - 0x06, 0x09, 0x2A, -122, 0x48, -122, -9, 0x0D, // OID (sha256WithRsaEncryption) - 0x01, 0x01, 0x0B, - 0x05, 0x00 // Null (Parameter) - }, new AlgorithmIdentifier( - ASN1Object.TAG_SEQUENCE, null, + 0x30, 0x0D, // SEQUENCE AlgorithmIdentifier + 0x06, 0x09, 0x2A, -122, 0x48, -122, -9, 0x0D, // OID (sha256WithRsaEncryption) + 0x01, 0x01, 0x0B, + 0x05, 0x00 // Null (Parameter) + }, new AlgorithmIdentifier( + ASN1Object.TAG_SEQUENCE, null, new ObjectIdentifier(ObjectIdentifier.TAG, null, OID_SHA256_WITH_RSA_ENCRYPTION), new Null(Null.TAG, null)).encodeDER()); } -- cgit v1.2.3