Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for c3aaa29f002ca75870806e44086700f62ce4d43e902b3888e23ceff797a7a471 (0.51 sec)

  1. src/crypto/cipher/example_test.go

    	// When decoded the key should be 16 bytes (AES-128) or 32 (AES-256).
    	key, _ := hex.DecodeString("6368616e676520746869732070617373776f726420746f206120736563726574")
    	ciphertext, _ := hex.DecodeString("c3aaa29f002ca75870806e44086700f62ce4d43e902b3888e23ceff797a7a471")
    	nonce, _ := hex.DecodeString("64a9433eae7ccceee2fc0eda")
    
    	block, err := aes.NewCipher(key)
    	if err != nil {
    		panic(err.Error())
    	}
    
    	aesgcm, err := cipher.NewGCM(block)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 30 16:23:44 UTC 2018
    - 11.8K bytes
    - Viewed (0)
Back to top