Correct PPTP server firewall rules chain.
[tomato/davidwu.git] / release / src / router / nettle / testsuite / sexp2rsa-test.c
blob9507d3a5ad53e56ca045190c56e388568f4c8a74
1 #include "testutils.h"
3 void
4 test_main(void)
6 struct rsa_public_key pub;
7 struct rsa_private_key priv;
8 const struct tstring *sexp;
10 rsa_public_key_init(&pub);
11 rsa_private_key_init(&priv);
13 sexp = SHEX("2831313a707269766174652d6b657928"
14 "333a72736128313a6e36333a085c3408"
15 "989acae4faec3cbbad91c90d34c1d259"
16 "cd74121a36f38b0b51424a9b2be514a0"
17 "4377113a6cdafe79dd7d5f2ecc8b5e96"
18 "61189b86a7b22239907c252928313a65"
19 "343a36ad4b1d2928313a6436333a06ee"
20 "6d4ff3c239e408150daf8117abfa36a4"
21 "0ad4455d9059a86d52f33a2de07418a0"
22 "a699594588c64810248c9412d554f74a"
23 "f947c73c32007e87c92f0937ed292831"
24 "3a7033323a03259879b24315e9cf1425"
25 "4824c7935d807cdb6990f414a0f65e60"
26 "65130a611f2928313a7133323a02a81b"
27 "a73bad45fc73b36deffce52d1b73e074"
28 "7f4d8a82648cecd310448ea63b292831"
29 "3a6133323a026cbdad5dd0046e093f06"
30 "0ecd5b4ac918e098b0278bb752b7cadd"
31 "6a8944f0b92928313a6233323a014875"
32 "1e622d6d58e3bb094afd6edacf737035"
33 "1d068e2ce9f565c5528c4a7473292831"
34 "3a6333323a00f8a458ea73a018dc6fa5"
35 "6863e3bc6de405f364f77dee6f096267"
36 "9ea1a8282e292929");
37 ASSERT(rsa_keypair_from_sexp
38 (&pub, &priv, 0, sexp->length, sexp->data));
40 test_rsa_key(&pub, &priv);
42 rsa_public_key_clear(&pub);
43 rsa_private_key_clear(&priv);