diff options
author | Fredrik Thulin <fredrik@thulin.net> | 2016-06-16 16:31:50 +0200 |
---|---|---|
committer | Fredrik Thulin <fredrik@thulin.net> | 2016-06-16 16:31:50 +0200 |
commit | 52f1eb5c3dccd47d2434e0c7a302c23363790e1d (patch) | |
tree | 788cccf19c5dec657e633c1f26020f144def9603 /hash.c | |
parent | 58c3a85cbe684632e9c51d82c037708adfc6dee1 (diff) | |
parent | 1c3e4894ea9f1a6f9bc6602e6454a6efd9562efa (diff) |
Merge branch 'master' into ft-ks_flash
Diffstat (limited to 'hash.c')
-rw-r--r-- | hash.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1031,7 +1031,7 @@ static hal_error_t sw_hash_core_sha256(hal_hash_state_t *state) uint32_t *H = (uint32_t *) state->core_state, S[8], W[64]; if (state->block_count == 0) { - switch (state->driver_ctrl_mode & SHA256_MODE_MASK) { + switch (state->driver->ctrl_mode & SHA256_MODE_MASK) { case SHA256_MODE_SHA_224: memcpy(H, sha224_iv, sizeof(sha224_iv)); break; case SHA256_MODE_SHA_256: memcpy(H, sha256_iv, sizeof(sha256_iv)); break; default: return HAL_ERROR_IMPOSSIBLE; |