mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 17:57:21 +09:00
lcov exclusion
This commit is contained in:
@@ -12,6 +12,11 @@ static unsigned char alicepk[32]
|
||||
0xdc, 0xb4, 0x3e, 0xf7, 0x5a, 0x0d, 0xbf, 0x3a, 0x0d, 0x26, 0x38,
|
||||
0x1a, 0xf4, 0xeb, 0xa4, 0xa9, 0x8e, 0xaa, 0x9b, 0x4e, 0x6a };
|
||||
|
||||
static const unsigned char small_order_p[crypto_box_PUBLICKEYBYTES]
|
||||
= { 0xe0, 0xeb, 0x7a, 0x7c, 0x3b, 0x41, 0xb8, 0xae, 0x16, 0x56, 0xe3,
|
||||
0xfa, 0xf1, 0x9f, 0xc4, 0x6a, 0xda, 0x09, 0x8d, 0xeb, 0x9c, 0x32,
|
||||
0xb1, 0xfd, 0x86, 0x62, 0x05, 0x16, 0x5f, 0x49, 0xb8, 0x00 };
|
||||
|
||||
static unsigned char nonce[24]
|
||||
= { 0x69, 0x69, 0x6e, 0xe9, 0x55, 0xb6, 0x2b, 0x73,
|
||||
0xcd, 0x62, 0xbd, 0xa8, 0x75, 0xfc, 0x73, 0xd6,
|
||||
@@ -50,6 +55,8 @@ int main(void)
|
||||
}
|
||||
printf("\n");
|
||||
}
|
||||
ret = crypto_box_open(m, c, 163, nonce, small_order_p, bobsk);
|
||||
assert(ret == -1);
|
||||
|
||||
memset(m, 0, sizeof m);
|
||||
ret = crypto_box_beforenm(k, alicepk, bobsk);
|
||||
|
||||
Reference in New Issue
Block a user