[libfko] added context initialized check to fko_decrypt_spa_data()
This commit is contained in:
parent
6d0f970b34
commit
7b3c854a02
@ -542,6 +542,9 @@ fko_decrypt_spa_data(fko_ctx_t ctx, const char * const dec_key, const int key_le
|
||||
{
|
||||
int enc_type, res;
|
||||
|
||||
if(!CTX_INITIALIZED(ctx))
|
||||
return(FKO_ERROR_CTX_NOT_INITIALIZED);
|
||||
|
||||
/* Get the (assumed) type of encryption used. This will also provide
|
||||
* some data validation.
|
||||
*/
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user