mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2025-12-21 21:36:21 +01:00
Fix formatting in various code to match spacing from coding style
This commit is contained in:
parent
db20c10423
commit
66d5d076f7
46 changed files with 293 additions and 292 deletions
|
|
@ -75,7 +75,7 @@ int pkcs11_x509_cert_init( x509_crt *cert, pkcs11h_certificate_t pkcs11_cert )
|
|||
goto cleanup;
|
||||
}
|
||||
|
||||
if( 0 != x509_crt_parse(cert, cert_blob, cert_blob_size ) )
|
||||
if( 0 != x509_crt_parse( cert, cert_blob, cert_blob_size ) )
|
||||
{
|
||||
ret = 6;
|
||||
goto cleanup;
|
||||
|
|
@ -105,7 +105,7 @@ int pkcs11_priv_key_init( pkcs11_context *priv_key,
|
|||
if( 0 != pkcs11_x509_cert_init( &cert, pkcs11_cert ) )
|
||||
goto cleanup;
|
||||
|
||||
priv_key->len = pk_get_len(&cert.pk);
|
||||
priv_key->len = pk_get_len( &cert.pk );
|
||||
priv_key->pkcs11h_cert = pkcs11_cert;
|
||||
|
||||
ret = 0;
|
||||
|
|
@ -191,13 +191,13 @@ int pkcs11_sign( pkcs11_context *ctx,
|
|||
}
|
||||
|
||||
sig_len = ctx->len;
|
||||
if ( hashlen > sig_len || asn_len > sig_len ||
|
||||
hashlen + asn_len > sig_len )
|
||||
if( hashlen > sig_len || asn_len > sig_len ||
|
||||
hashlen + asn_len > sig_len )
|
||||
{
|
||||
return( POLARSSL_ERR_RSA_BAD_INPUT_DATA );
|
||||
}
|
||||
|
||||
if( md_alg != POLARSSL_MD_NONE)
|
||||
if( md_alg != POLARSSL_MD_NONE )
|
||||
{
|
||||
/*
|
||||
* DigestInfo ::= SEQUENCE {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue