mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-01-09 07:59:22 +01:00
- Added support for RFC4055 SHA2 and SHA4 signature algorithms for
use with PKCS#1 v1.5 signing and verification. - Added extra certificates to test-ca and test code to further test functionality of SHA2 and SHA4 signing and verification. - Updated other program files accordingly
This commit is contained in:
parent
b29e23c586
commit
4593aeadaf
42 changed files with 1627 additions and 663 deletions
|
|
@ -162,7 +162,7 @@ int main( void )
|
|||
buf[n ] = (unsigned char)( rsa.len >> 8 );
|
||||
buf[n + 1] = (unsigned char)( rsa.len );
|
||||
|
||||
if( ( ret = rsa_pkcs1_sign( &rsa, RSA_PRIVATE, RSA_SHA1,
|
||||
if( ( ret = rsa_pkcs1_sign( &rsa, RSA_PRIVATE, SIG_RSA_SHA1,
|
||||
0, hash, buf + n + 2 ) ) != 0 )
|
||||
{
|
||||
printf( " failed\n ! rsa_pkcs1_sign returned %d\n\n", ret );
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue