bsaes-armv7.pl (306195) | bsaes-armv7.pl (325335) |
---|---|
1#!/usr/bin/env perl 2 3# ==================================================================== 4# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL 5# project. The module is, however, dual licensed under OpenSSL and 6# CRYPTOGAMS licenses depending on where you obtain it. For further 7# details see http://www.openssl.org/~appro/cryptogams/. 8# --- 1319 unchanged lines hidden (view full) --- 1328.Lcbc_dec_one: 1329 sub $inp, $inp, #0x10 1330 mov $rounds, $out @ save original out pointer 1331 mov $out, $fp @ use the iv scratch space as out buffer 1332 mov r2, $key 1333 vmov @XMM[4],@XMM[15] @ just in case ensure that IV 1334 vmov @XMM[5],@XMM[0] @ and input are preserved 1335 bl AES_decrypt | 1#!/usr/bin/env perl 2 3# ==================================================================== 4# Written by Andy Polyakov <appro@openssl.org> for the OpenSSL 5# project. The module is, however, dual licensed under OpenSSL and 6# CRYPTOGAMS licenses depending on where you obtain it. For further 7# details see http://www.openssl.org/~appro/cryptogams/. 8# --- 1319 unchanged lines hidden (view full) --- 1328.Lcbc_dec_one: 1329 sub $inp, $inp, #0x10 1330 mov $rounds, $out @ save original out pointer 1331 mov $out, $fp @ use the iv scratch space as out buffer 1332 mov r2, $key 1333 vmov @XMM[4],@XMM[15] @ just in case ensure that IV 1334 vmov @XMM[5],@XMM[0] @ and input are preserved 1335 bl AES_decrypt |
1336 vld1.8 {@XMM[0]}, [$fp,:64] @ load result | 1336 vld1.8 {@XMM[0]}, [$fp] @ load result |
1337 veor @XMM[0], @XMM[0], @XMM[4] @ ^= IV 1338 vmov @XMM[15], @XMM[5] @ @XMM[5] holds input 1339 vst1.8 {@XMM[0]}, [$rounds] @ write output 1340 1341.Lcbc_dec_done: 1342#ifndef BSAES_ASM_EXTENDED_KEY 1343 vmov.i32 q0, #0 1344 vmov.i32 q1, #0 --- 1107 unchanged lines hidden --- | 1337 veor @XMM[0], @XMM[0], @XMM[4] @ ^= IV 1338 vmov @XMM[15], @XMM[5] @ @XMM[5] holds input 1339 vst1.8 {@XMM[0]}, [$rounds] @ write output 1340 1341.Lcbc_dec_done: 1342#ifndef BSAES_ASM_EXTENDED_KEY 1343 vmov.i32 q0, #0 1344 vmov.i32 q1, #0 --- 1107 unchanged lines hidden --- |