libgocryptfs/internal/cryptocore
Jakob Unterwurzacher 75cace0568 cryptocore: simplify declarations
Reported by codacity:

internal/cryptocore/cryptocore.go
Minor icon MINOR
Code Style
should omit type AEADTypeEnum from declaration of var BackendAESSIV; it will be inferred from the right-hand side
var BackendAESSIV AEADTypeEnum = AEADTypeEnum{"AES-SIV-512", "Go", siv_aead.NonceSize}
Minor icon MINOR
Code Style
should omit type AEADTypeEnum from declaration of var BackendXChaCha20Poly1305; it will be inferred from the right-hand side
var BackendXChaCha20Poly1305 AEADTypeEnum = AEADTypeEnum{"XChaCha20-Poly1305", "Go", chacha20poly1305.NonceSizeX}
Minor icon MINOR
Code Style
should omit type AEADTypeEnum from declaration of var BackendXChaCha20Poly1305OpenSSL; it will be inferred from the right-hand side
var BackendXChaCha20Poly1305OpenSSL AEADTypeEnum = AEADTypeEnum{"XChaCha20-Poly1305", "OpenSSL", chacha20poly1305.NonceSizeX}
Found 2 possible new issues
internal/cryptocore/cryptocore.go
Minor icon MINOR
Code Style
should omit type AEADTypeEnum from declaration of var BackendOpenSSL; it will be inferred from the right-hand side
var BackendOpenSSL AEADTypeEnum = AEADTypeEnum{"AES-GCM-256", "OpenSSL", 16}
Minor icon MINOR
Code Style
should omit type AEADTypeEnum from declaration of var BackendGoGCM; it will be inferred from the right-hand side
var BackendGoGCM AEADTypeEnum = AEADTypeEnum{"AES-GCM-256", "Go", 16}
2021-09-28 18:35:37 +02:00
..
cryptocore.go cryptocore: simplify declarations 2021-09-28 18:35:37 +02:00
cryptocore_test.go cli: drop -forcedecode flag 2021-09-10 12:14:19 +02:00
hkdf.go Add partial XChaCha20-Poly1305 support (mount flag only) 2021-08-23 16:00:41 +02:00
hkdf_test.go cryptocore: improve comments and add tests for hkdfDerive 2017-05-27 14:41:20 +02:00
nonce.go cryptocore: prefetch nonces in 512-byte blocks 2017-06-09 22:05:14 +02:00
randprefetch.go cryptocore: add urandom + randprefetch benchmarks 2017-08-16 18:33:00 +02:00
randprefetch_test.go cryptocore: add urandom + randprefetch benchmarks 2017-08-16 18:33:00 +02:00
randsize_test.go cryptocore: add urandom + randprefetch benchmarks 2017-08-16 18:33:00 +02:00