diff options
| author | tb <> | 2018-09-16 18:44:33 +0000 |
|---|---|---|
| committer | tb <> | 2018-09-16 18:44:33 +0000 |
| commit | 9b8f3a492393c50d782986ef50f91678d8b39060 (patch) | |
| tree | a18741e964a224d3087b6547248430a61ea3d6c6 /src | |
| parent | b10895464058307a6a1994c56506841a4105550f (diff) | |
| download | openbsd-9b8f3a492393c50d782986ef50f91678d8b39060.tar.gz openbsd-9b8f3a492393c50d782986ef50f91678d8b39060.tar.bz2 openbsd-9b8f3a492393c50d782986ef50f91678d8b39060.zip | |
EVP_aead_chacha20_poly1305() can't actually fail.
Diffstat (limited to 'src')
| -rw-r--r-- | src/regress/lib/libcrypto/wycheproof/wycheproof.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/regress/lib/libcrypto/wycheproof/wycheproof.go b/src/regress/lib/libcrypto/wycheproof/wycheproof.go index ebfe105916..44ee2dec3f 100644 --- a/src/regress/lib/libcrypto/wycheproof/wycheproof.go +++ b/src/regress/lib/libcrypto/wycheproof/wycheproof.go | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: wycheproof.go,v 1.54 2018/09/16 11:45:08 tb Exp $ */ | 1 | /* $OpenBSD: wycheproof.go,v 1.55 2018/09/16 18:44:33 tb Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> | 3 | * Copyright (c) 2018 Joel Sing <jsing@openbsd.org> |
| 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> | 4 | * Copyright (c) 2018 Theo Buehler <tb@openbsd.org> |
| @@ -866,9 +866,6 @@ func checkAeadSeal(ctx *C.EVP_AEAD_CTX, iv []byte, ivLen int, aad []byte, aadLen | |||
| 866 | 866 | ||
| 867 | func runChaCha20Poly1305Test(iv_len int, key_len int, tag_len int, wt *wycheproofTestAead) bool { | 867 | func runChaCha20Poly1305Test(iv_len int, key_len int, tag_len int, wt *wycheproofTestAead) bool { |
| 868 | aead := C.EVP_aead_chacha20_poly1305() | 868 | aead := C.EVP_aead_chacha20_poly1305() |
| 869 | if aead == nil { | ||
| 870 | log.Fatal("EVP_aead_chacha20_poly1305 failed") | ||
| 871 | } | ||
| 872 | 869 | ||
| 873 | key, err := hex.DecodeString(wt.Key) | 870 | key, err := hex.DecodeString(wt.Key) |
| 874 | if err != nil { | 871 | if err != nil { |
