repo.or.cz
/
tomato
/
davidwu.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Correct PPTP server firewall rules chain.
[tomato/davidwu.git]
/
release
/
src
/
router
/
nettle
/
testsuite
/
pkcs1-test.c
blob
8e4e6981ad353f1e1fa421051c69069d8f596e5b
1
#include
"testutils.h"
2
3
#include
"pkcs1.h"
4
5
void
6
test_main
(
void
)
7
{
8
uint8_t
buffer
[
16
];
9
uint8_t
expected
[
16
] = {
0
,
1
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
0xff
,
10
0xff
,
0xff
,
0xff
,
0xff
,
0
,
'a'
,
'b'
,
'c'
};
11
12
_pkcs1_signature_prefix
(
sizeof
(
buffer
),
buffer
,
13
3
,
"abc"
,
0
);
14
15
ASSERT
(
MEMEQ
(
sizeof
(
buffer
),
buffer
,
expected
));
16
}