forked from wolfSSL/wolfssl
Compile options for larger salt lengths in RSA-PSS
Salt length larger than the hash size allowed in RSA-PSS. Passing -2 to PSS pad function uses maximum salt length. Passing -2 to PSS un-pad function makes it discover salt length.
This commit is contained in:
@ -22310,14 +22310,14 @@ static void test_wolfSSL_ERR_print_errors(void)
|
||||
AssertNotNull(bio = BIO_new(BIO_s_mem()));
|
||||
ERR_clear_error(); /* clear out any error nodes */
|
||||
ERR_put_error(0,SYS_F_ACCEPT, -173, "ssl.c", 0);
|
||||
ERR_put_error(0,SYS_F_BIND, -273, "asn.c", 100);
|
||||
ERR_put_error(0,SYS_F_BIND, -283, "asn.c", 100);
|
||||
|
||||
ERR_print_errors(bio);
|
||||
AssertIntEQ(BIO_gets(bio, buf, sizeof(buf)), 56);
|
||||
AssertIntEQ(XSTRNCMP("error:173:wolfSSL library:Bad function argument:ssl.c:0",
|
||||
buf, 55), 0);
|
||||
AssertIntEQ(BIO_gets(bio, buf, sizeof(buf)), 57);
|
||||
AssertIntEQ(XSTRNCMP("error:273:wolfSSL library:unknown error number:asn.c:100",
|
||||
AssertIntEQ(XSTRNCMP("error:283:wolfSSL library:unknown error number:asn.c:100",
|
||||
buf, 56), 0);
|
||||
AssertIntEQ(BIO_gets(bio, buf, sizeof(buf)), 0);
|
||||
AssertIntEQ(ERR_get_error_line(NULL, NULL), 0);
|
||||
|
Reference in New Issue
Block a user