summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/modes/gcm128.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/lib/libcrypto/modes/gcm128.c b/src/lib/libcrypto/modes/gcm128.c
index 69b1dd4f49..42291519bc 100644
--- a/src/lib/libcrypto/modes/gcm128.c
+++ b/src/lib/libcrypto/modes/gcm128.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: gcm128.c,v 1.20 2017/09/03 13:07:34 inoguchi Exp $ */ 1/* $OpenBSD: gcm128.c,v 1.21 2017/12/09 07:16:51 deraadt Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 2010 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -1515,13 +1515,15 @@ int CRYPTO_gcm128_finish(GCM128_CONTEXT *ctx,const unsigned char *tag,
1515 alen = BSWAP8(alen); 1515 alen = BSWAP8(alen);
1516 clen = BSWAP8(clen); 1516 clen = BSWAP8(clen);
1517#else 1517#else
1518 u8 *p = ctx->len.c; 1518 {
1519 u8 *p = ctx->len.c;
1519 1520
1520 ctx->len.u[0] = alen; 1521 ctx->len.u[0] = alen;
1521 ctx->len.u[1] = clen; 1522 ctx->len.u[1] = clen;
1522 1523
1523 alen = (u64)GETU32(p) <<32|GETU32(p+4); 1524 alen = (u64)GETU32(p) <<32|GETU32(p+4);
1524 clen = (u64)GETU32(p+8)<<32|GETU32(p+12); 1525 clen = (u64)GETU32(p+8)<<32|GETU32(p+12);
1526 }
1525#endif 1527#endif
1526#endif 1528#endif
1527 1529