aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Polyakov <appro@openssl.org>2013-04-04 15:54:08 +0200
committerAndy Polyakov <appro@openssl.org>2013-04-04 15:54:08 +0200
commit7f97d57236c8407a163a4e9f43a65c0dd691a057 (patch)
tree4721077be1767a4dd699d3a8f02643e37dd1f083
parentc9a8e3d1c754cee8551d36cd54a1ea675ee8d055 (diff)
downloadopenssl-7f97d57236c8407a163a4e9f43a65c0dd691a057.zip
openssl-7f97d57236c8407a163a4e9f43a65c0dd691a057.tar.gz
openssl-7f97d57236c8407a163a4e9f43a65c0dd691a057.tar.bz2
dest4-sparcv9.pl: add clarification comment.
-rw-r--r--crypto/des/asm/dest4-sparcv9.pl8
1 files changed, 8 insertions, 0 deletions
diff --git a/crypto/des/asm/dest4-sparcv9.pl b/crypto/des/asm/dest4-sparcv9.pl
index 5936a65..f9d9711 100644
--- a/crypto/des/asm/dest4-sparcv9.pl
+++ b/crypto/des/asm/dest4-sparcv9.pl
@@ -282,7 +282,15 @@ des_t4_cbc_decrypt:
st %f3, [$ivec + 4]
.type des_t4_cbc_decrypt,#function
.size des_t4_cbc_decrypt,.-des_t4_cbc_decrypt
+___
+
+# One might wonder why does one have back-to-back des_iip/des_ip
+# pairs between EDE passes. Indeed, aren't they inverse of each other?
+# They almost are. Outcome of the pair is 32-bit words being swapped
+# in target register. Consider pair of des_iip/des_ip as a way to
+# perform the due swap, it's actually fastest way in this case.
+$code.=<<___;
.globl des_t4_ede3_cbc_encrypt
.align 32
des_t4_ede3_cbc_encrypt: