internal/subtle: s390x, add quick end checking

This commit is contained in:
Sun Yimin 2024-08-28 10:16:08 +08:00 committed by GitHub
parent eb36af59e5
commit a2295b993d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,6 +1,3 @@
// The original code (non-vector) is ported from Golang
// https://github.com/golang/go/blob/master/src/crypto/aes/ctr_s390x.go
//go:build !purego
#include "textflag.h"
@ -25,6 +22,7 @@ loop16b:
CMPBGE R4, $16, loop16b
tail:
CMPBEQ R4, $0, done
CMPBLT R4, $8, less_than8
MOVD 0(R2)(R5*1), R7
MOVD 0(R3)(R5*1), R8