mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-30 06:33:06 +00:00
Fix when no SHA3 family is found.
Signed-off-by: Pol Henarejos <pol.henarejos@cttc.es>
This commit is contained in:
parent
85eeda0122
commit
116411e1a9
@ -203,7 +203,7 @@ int mbedtls_sha3_starts( mbedtls_sha3_context *ctx, mbedtls_sha3_id id )
|
||||
break;
|
||||
}
|
||||
|
||||
if( p == NULL )
|
||||
if( p == NULL || p->id == MBEDTLS_SHA3_NONE )
|
||||
return( MBEDTLS_ERR_SHA3_BAD_INPUT_DATA );
|
||||
|
||||
ctx->id = id;
|
||||
|
Loading…
x
Reference in New Issue
Block a user