Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for associatedData (0.18 sec)

  1. internal/kms/single-key.go

    	if err != nil {
    		return DEK{}, err
    	}
    
    	plaintext, err := sioutil.Random(32)
    	if err != nil {
    		return DEK{}, err
    	}
    	associatedData, _ := context.MarshalText()
    	ciphertext := aead.Seal(nil, nonce, plaintext, associatedData)
    
    	json := jsoniter.ConfigCompatibleWithStandardLibrary
    	ciphertext, err = json.Marshal(encryptedKey{
    		Algorithm: algorithm,
    		IV:        iv,
    		Nonce:     nonce,
    Go
    - Registered: Sun Apr 07 19:28:10 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 7.9K bytes
    - Viewed (0)
Back to top