]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
test: include CMAC keys in ntp_core unit test
authorMiroslav Lichvar <mlichvar@redhat.com>
Tue, 22 Sep 2020 09:55:10 +0000 (11:55 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Wed, 23 Sep 2020 13:10:43 +0000 (15:10 +0200)
test/unit/ntp_core.c
test/unit/ntp_core.keys

index 82e27311e771c61591dd132850be38de1d5aff5a..b5c148a319da75f4ae3546af927253b7a8da59ee 100644 (file)
@@ -73,7 +73,7 @@ get_random_key_id(void)
   uint32_t id;
 
   do {
-    id = random() % 6 + 2;
+    id = random() % 8 + 2;
   } while (!KEY_KeyKnown(id));
 
   return id;
index f06237f4c3b5e7cb76657fc805eba292ac7cbf41..a3e4f6c461d9797296ad3add1c9a846e0cba2194 100644 (file)
@@ -4,3 +4,5 @@
 5 SHA1 HEX:B71744EA01FBF01CA30D173ECDDF901952AE356A
 6 SHA512 HEX:DE027482F22B201FC20863F58C74095E7906089F
 7 SHA512 HEX:DE027482F22B201FC20863F58C74095E7906089F
+8 AES128 HEX:5D5E8A31D4B459A66D445259E147CFB5
+9 AES128 HEX:5D5E8A31D4B459A66D445259E147CFB5