diff options
author | thegeorg <thegeorg@yandex-team.ru> | 2022-05-10 22:16:03 +0300 |
---|---|---|
committer | thegeorg <thegeorg@yandex-team.ru> | 2022-05-10 22:16:03 +0300 |
commit | 09c71d918d4d0b0ebf67e1ab41aa90ddf587a3f2 (patch) | |
tree | dd44d2cb68e2845c2d4c367b66893f3e043a6e8e /contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c | |
parent | 5eb4a8a2d487411924e1d1b27c454223dcf35005 (diff) | |
download | ydb-09c71d918d4d0b0ebf67e1ab41aa90ddf587a3f2.tar.gz |
Update contrib/restricted/aws/s2n to 1.3.12
ref:f8279d764b4c00974a63543a1364c91e2b81b7a6
Diffstat (limited to 'contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c')
-rw-r--r-- | contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c b/contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c index 26c99bc80d..2f211010df 100644 --- a/contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c +++ b/contrib/restricted/aws/s2n/pq-crypto/bike_r2/aes_ctr_prf.c @@ -27,7 +27,7 @@ init_aes_ctr_prf_state(OUT aes_ctr_prf_state_t *s, bike_static_assert(sizeof(*seed) == sizeof(key.raw), seed_size_equals_ky_size); memcpy(key.raw, seed->raw, sizeof(key.raw)); - GUARD(aes256_key_expansion(&s->ks_ptr, &key)); + POSIX_GUARD(aes256_key_expansion(&s->ks_ptr, &key)); // Initialize buffer and counter s->ctr.u.qw[0] = 0; @@ -59,7 +59,7 @@ perform_aes(OUT uint8_t *ct, IN OUT aes_ctr_prf_state_t *s) BIKE_ERROR(E_AES_OVER_USED); } - GUARD(aes256_enc(ct, s->ctr.u.bytes, &s->ks_ptr)); + POSIX_GUARD(aes256_enc(ct, s->ctr.u.bytes, &s->ks_ptr)); s->ctr.u.qw[0]++; s->rem_invokations--; @@ -91,11 +91,11 @@ aes_ctr_prf(OUT uint8_t *a, IN OUT aes_ctr_prf_state_t *s, IN const uint32_t len // Copy full AES blocks while((len - idx) >= AES256_BLOCK_SIZE) { - GUARD(perform_aes(&a[idx], s)); + POSIX_GUARD(perform_aes(&a[idx], s)); idx += AES256_BLOCK_SIZE; } - GUARD(perform_aes(s->buffer.u.bytes, s)); + POSIX_GUARD(perform_aes(s->buffer.u.bytes, s)); // Copy the tail s->pos = len - idx; |