src/crypto/aes/asm_ppc64le.s | 26 ++++++++++++++------------ src/crypto/sha256/sha256block_ppc64le.s | 11 +++++++---- src/crypto/sha512/sha512block_ppc64le.s | 11 +++++++---- diff --git a/src/crypto/aes/asm_ppc64le.s b/src/crypto/aes/asm_ppc64le.s index 05e0018a3ef769fb911b8c056f895690e892a39a..a69cb78c8b56a8bead4b8516d407b4b2d728cf31 100644 --- a/src/crypto/aes/asm_ppc64le.s +++ b/src/crypto/aes/asm_ppc64le.s @@ -2,21 +2,23 @@ // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// This is a derived work from OpenSSL of AES using assembly optimizations. The -// original code was written by Andy Polyakov and it's dual -// licensed under OpenSSL and CRYPTOGAMS licenses depending on where you obtain -// it. For further details see http://www.openssl.org/~appro/cryptogams/. +// Based on CRYPTOGAMS code with the following comment: +// # ==================================================================== +// # Written by Andy Polyakov for the OpenSSL +// # project. The module is, however, dual licensed under OpenSSL and +// # CRYPTOGAMS licenses depending on where you obtain it. For further +// # details see http://www.openssl.org/~appro/cryptogams/. +// # ==================================================================== // Original code can be found at the link below: -// https://git.openssl.org/?p=openssl.git;a=blob;f=crypto/aes/asm/aesp8-ppc.pl +// https://github.com/dot-asm/cryptogams/blob/master/ppc/aesp8-ppc.pl -// The code is based on 627c953376 from 4 Jun 2016. I changed some function -// names in order to be more likely to go standards. For instance, function -// aes_p8_set_{en,de}crypt_key become set{En,De}cryptKeyAsm. I also split -// setEncryptKeyAsm in two parts and a new session was created -// (doEncryptKeyAsm). This was necessary to avoid arguments overwriting when -// setDecryptKeyAsm calls setEncryptKeyAsm. There were other modifications as -// well but kept the same functionality. +// I changed some function names in order to be more likely to go standards. +// For instance, function aes_p8_set_{en,de}crypt_key become +// set{En,De}cryptKeyAsm. I also split setEncryptKeyAsm in two parts +// and a new session was created (doEncryptKeyAsm). This was necessary to +// avoid arguments overwriting when setDecryptKeyAsm calls setEncryptKeyAsm. +// There were other modifications as well but kept the same functionality. #include "textflag.h" diff --git a/src/crypto/sha256/sha256block_ppc64le.s b/src/crypto/sha256/sha256block_ppc64le.s index 9ffa5f8269d7f1278eb8469519edbbead8c75810..f5435602fe73ba60738ab75c357befaed33376aa 100644 --- a/src/crypto/sha256/sha256block_ppc64le.s +++ b/src/crypto/sha256/sha256block_ppc64le.s @@ -2,10 +2,13 @@ // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// This is a derived work from OpenSSL of SHA-2 using assembly optimizations. The -// original code was written by Andy Polyakov and it's dual -// licensed under OpenSSL and CRYPTOGAMS licenses depending on where you obtain -// it. For further details see http://www.openssl.org/~appro/cryptogams/. +// Based on CRYPTOGAMS code with the following comment: +// # ==================================================================== +// # Written by Andy Polyakov for the OpenSSL +// # project. The module is, however, dual licensed under OpenSSL and +// # CRYPTOGAMS licenses depending on where you obtain it. For further +// # details see http://www.openssl.org/~appro/cryptogams/. +// # ==================================================================== #include "textflag.h" diff --git a/src/crypto/sha512/sha512block_ppc64le.s b/src/crypto/sha512/sha512block_ppc64le.s index 4419c00bf9381a6e9595303fadaacff774492fdb..170e3a645689e7015e9aa4a85b1f231bce98ca81 100644 --- a/src/crypto/sha512/sha512block_ppc64le.s +++ b/src/crypto/sha512/sha512block_ppc64le.s @@ -2,10 +2,13 @@ // Copyright 2016 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// This is a derived work from OpenSSL of SHA-2 using assembly optimizations. The -// original code was written by Andy Polyakov and it's dual -// licensed under OpenSSL and CRYPTOGAMS licenses depending on where you obtain -// it. For further details see http://www.openssl.org/~appro/cryptogams/. +// Based on CRYPTOGAMS code with the following comment: +// # ==================================================================== +// # Written by Andy Polyakov for the OpenSSL +// # project. The module is, however, dual licensed under OpenSSL and +// # CRYPTOGAMS licenses depending on where you obtain it. For further +// # details see http://www.openssl.org/~appro/cryptogams/. +// # ==================================================================== #include "textflag.h"