Lines Matching defs:byte

720 func mustHashHexMessage(md *C.EVP_MD, message string) ([]byte, int) {
728 digest := make([]byte, size)
737 func mustDecodeHexString(str, descr string) (out []byte, outLen int) {
749 func checkAesCbcPkcs5(ctx *C.EVP_CIPHER_CTX, doEncrypt int, key []byte, keyLen int, iv []byte, ivLen int, in []byte, inLen int, out []byte, outLen int, wt *wycheproofTestAesCbcPkcs5) bool {
762 cipherOut := make([]byte, inLen+C.EVP_MAX_BLOCK_LENGTH)
845 func checkAesAead(algorithm string, ctx *C.EVP_CIPHER_CTX, doEncrypt int, key []byte, keyLen int, iv []byte, ivLen int, aad []byte, aadLen int, in []byte, inLen int, out []byte, outLen int, tag []byte, tagLen int, wt *wycheproofTestAead) bool {
921 cipherOut := make([]byte, inLen)
937 dummyOut := make([]byte, 16)
958 tagOut := make([]byte, tagLen)
1071 outTag := make([]byte, 16)
1107 func checkAeadOpen(ctx *C.EVP_AEAD_CTX, iv []byte, ivLen int, aad []byte, aadLen int, msg []byte, msgLen int, ct []byte, ctLen int, tag []byte, tagLen int, wt *wycheproofTestAead) bool {
1110 opened := make([]byte, maxOutLen)
1150 func checkAeadSeal(ctx *C.EVP_AEAD_CTX, iv []byte, ivLen int, aad []byte, aadLen int, msg []byte, msgLen int, ct []byte, ctLen int, tag []byte, tagLen int, wt *wycheproofTestAead) bool {
1153 sealed := make([]byte, maxOutLen)
1269 sealed := make([]byte, ctLen + tagLen)
1319 opened := make([]byte, msgLen + tagLen)
1607 secret := make([]byte, secLen)
1625 // XXX The shared fields of the secp224k1 test cases have a 0 byte preprended.
1627 fmt.Printf("INFO: %s - prepending 0 byte.\n", wt)
1629 zero := make([]byte, 1, secLen+1)
1724 secret := make([]byte, secLen)
2005 out := make([]byte, outLen)
2078 got := make([]byte, C.EVP_MAX_MD_SIZE)
2127 func runKWTestWrap(keySize int, key []byte, keyLen int, msg []byte, msgLen int, ct []byte, ctLen int, wt *wycheproofTestKW) bool {
2137 out := make([]byte, outLen)
2139 out = append(out, make([]byte, 8)...)
2155 func runKWTestUnWrap(keySize int, key []byte, keyLen int, msg []byte, msgLen int, ct []byte, ctLen int, wt *wycheproofTestKW) bool {
2164 out := make([]byte, ctLen)
2240 decrypted := make([]byte, rsaSize)
2258 to := make([]byte, rsaSize)
2343 decrypted := make([]byte, rsaSize)
2423 sigOut := make([]byte, C.RSA_size(rsa)-11)
2570 got := make([]byte, C.X25519_KEY_LENGTH)
2778 if test.variant == Skip || (test.variant == Normal && skipNormal.Match([]byte(tv))) {