Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for NewX (0.05 sec)

  1. src/vendor/golang.org/x/crypto/chacha20poly1305/xchacha20poly1305.go

    	key [KeySize]byte
    }
    
    // NewX returns a XChaCha20-Poly1305 AEAD that uses the given 256-bit key.
    //
    // XChaCha20-Poly1305 is a ChaCha20-Poly1305 variant that takes a longer nonce,
    // suitable to be generated randomly without risk of collisions. It should be
    // preferred when nonce uniqueness cannot be trivially ensured, or whenever
    // nonces are randomly generated.
    func NewX(key []byte) (cipher.AEAD, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 09 20:10:44 UTC 2021
    - 2.5K bytes
    - Viewed (0)
Back to top