paranoia

package
v0.0.0-...-7bb13b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 21, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AreBytesEqual

func AreBytesEqual(a *[]byte, b *[]byte) bool

AreBytesEqual is a pathetic attempt to prevent timing attacks against byte array comparisons. we try to scale random delays by length of arrays

func CSRandomUint32

func CSRandomUint32() uint32

CSRandomUint32 is a convenience function for getting uint32s out of crypto/rand

func CheckForExitOrQuit

func CheckForExitOrQuit(bpp *[]byte) bool

func PanicedRandomRead

func PanicedRandomRead(ba *[]byte)

func PanicedRandomRead32

func PanicedRandomRead32(ba *[32]byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL