diff options
author | Mattias Andrée <maandree@kth.se> | 2024-09-05 18:50:36 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2024-09-05 18:50:36 +0200 |
commit | 36eaf29a8154bc948c0969a29021b293cf38695b (patch) | |
tree | 0c16e92ceef40984dc95b3875afb322865ae73a8 | |
parent | Set standard_partial_byte_output_encoding to LIBHASHSUM_UNSUPPORTED for SHA-3 (diff) | |
download | libhashsum-36eaf29a8154bc948c0969a29021b293cf38695b.tar.gz libhashsum-36eaf29a8154bc948c0969a29021b293cf38695b.tar.bz2 libhashsum-36eaf29a8154bc948c0969a29021b293cf38695b.tar.xz |
Set standard_partial_byte_output_encoding to LIBHASHSUM_UNSUPPORTED for Keccal-{224,256,384,512}
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libhashsum_init_keccak_224_hasher.c | 4 | ||||
-rw-r--r-- | libhashsum_init_keccak_256_hasher.c | 4 | ||||
-rw-r--r-- | libhashsum_init_keccak_384_hasher.c | 4 | ||||
-rw-r--r-- | libhashsum_init_keccak_512_hasher.c | 4 |
4 files changed, 12 insertions, 4 deletions
diff --git a/libhashsum_init_keccak_224_hasher.c b/libhashsum_init_keccak_224_hasher.c index 7a2b516..a05e207 100644 --- a/libhashsum_init_keccak_224_hasher.c +++ b/libhashsum_init_keccak_224_hasher.c @@ -5,5 +5,7 @@ int libhashsum_init_keccak_224_hasher(struct libhashsum_hasher *this) { - return libhashsum_init_keccak_hasher(this, KECCAKN(224)); + int r = libhashsum_init_keccak_hasher(this, KECCAKN(224)); + this->standard_partial_byte_output_encoding = LIBHASHSUM_UNSUPPORTED; + return r; } diff --git a/libhashsum_init_keccak_256_hasher.c b/libhashsum_init_keccak_256_hasher.c index 2724e3a..a7d225e 100644 --- a/libhashsum_init_keccak_256_hasher.c +++ b/libhashsum_init_keccak_256_hasher.c @@ -5,5 +5,7 @@ int libhashsum_init_keccak_256_hasher(struct libhashsum_hasher *this) { - return libhashsum_init_keccak_hasher(this, KECCAKN(256)); + int r = libhashsum_init_keccak_hasher(this, KECCAKN(256)); + this->standard_partial_byte_output_encoding = LIBHASHSUM_UNSUPPORTED; + return r; } diff --git a/libhashsum_init_keccak_384_hasher.c b/libhashsum_init_keccak_384_hasher.c index 61e4f64..4dd0647 100644 --- a/libhashsum_init_keccak_384_hasher.c +++ b/libhashsum_init_keccak_384_hasher.c @@ -5,5 +5,7 @@ int libhashsum_init_keccak_384_hasher(struct libhashsum_hasher *this) { - return libhashsum_init_keccak_hasher(this, KECCAKN(384)); + int r = libhashsum_init_keccak_hasher(this, KECCAKN(384)); + this->standard_partial_byte_output_encoding = LIBHASHSUM_UNSUPPORTED; + return r; } diff --git a/libhashsum_init_keccak_512_hasher.c b/libhashsum_init_keccak_512_hasher.c index 1946aca..093a344 100644 --- a/libhashsum_init_keccak_512_hasher.c +++ b/libhashsum_init_keccak_512_hasher.c @@ -5,5 +5,7 @@ int libhashsum_init_keccak_512_hasher(struct libhashsum_hasher *this) { - return libhashsum_init_keccak_hasher(this, KECCAKN(512)); + int r = libhashsum_init_keccak_hasher(this, KECCAKN(512)); + this->standard_partial_byte_output_encoding = LIBHASHSUM_UNSUPPORTED; + return r; } |