summaryrefslogtreecommitdiff
path: root/src/usr.sbin
diff options
context:
space:
mode:
authortb <>2023-05-20 12:03:02 +0000
committertb <>2023-05-20 12:03:02 +0000
commit3d109e0a2941852707bea5f42b0adcee09d77740 (patch)
tree11b37b64c3af5d399f11a74b5a3f525d94ceff15 /src/usr.sbin
parent562a71cb7be490943eeaa2bae2bb0c1ab0a458f1 (diff)
downloadopenbsd-3d109e0a2941852707bea5f42b0adcee09d77740.tar.gz
openbsd-3d109e0a2941852707bea5f42b0adcee09d77740.tar.bz2
openbsd-3d109e0a2941852707bea5f42b0adcee09d77740.zip
openssl speed: add an '-unaligned n' option
All hashes and ciphers covered by speed should be able to handle unaligned input and output. The buffers used in openssl speed are well aligned since they are large, so will never exercise the more problematic unaligned case. I wished something like this was available on various occasions. It would have been useful to point more easily at OpenSSL's broken T4 assembly. Yesterday there were two independent reasons for wanting it, so I sat down and did it. It's trivial: make the allocations a bit larger and use buffers starting at an offset inside these allocations. Despite the trivality, I managed to have a stupid bug. Thanks miod. discussed with jsing ok miod
Diffstat (limited to 'src/usr.sbin')
0 files changed, 0 insertions, 0 deletions