Fix a bug where we included the IV in the data to decrypt while unwrapping
This commit is contained in:
@@ -607,7 +607,7 @@ ssize_t rlocs_decrypt( struct rlocs *reg, struct rloc *x, struct rloc *y, unsign
|
||||
goto fail;
|
||||
}
|
||||
|
||||
if ( !EVP_DecryptUpdate( &entry->ctx, dest, &outl, data, data_len ) ) {
|
||||
if ( !EVP_DecryptUpdate( &entry->ctx, dest, &outl, data + 16, data_len - 16 ) ) {
|
||||
warn( "EVP_DecryptUpdate() failed" );
|
||||
goto fail;
|
||||
}
|
||||
|
Reference in New Issue
Block a user