portable-devtools / go /src /crypto /hpke /aead_fips140v1.0.go
codekingpro's picture
Add files using upload-large-folder tool
4bcc2be verified
Raw
History Blame Contribute Delete
386 Bytes
// Copyright 2025 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
//go:build fips140v1.0
package hpke
import (
"crypto/aes"
"crypto/cipher"
)
func newAESGCM(key []byte) (cipher.AEAD, error) {
b, err := aes.NewCipher(key)
if err != nil {
return nil, err
}
return cipher.NewGCM(b)
}