Skip to content
Snippets Groups Projects
Commit 7874ef3c authored by thaidn's avatar thaidn Committed by Tink Team
Browse files

Golang: make daead.NewWithKeyManager public

PiperOrigin-RevId: 232346154
GitOrigin-RevId: c0f0ae473f2280391d8dbf55d8592ef400cee7a0
parent 581f6a4e
No related branches found
No related tags found
No related merge requests found
......@@ -23,11 +23,11 @@ import (
// New returns a DeterministicAEAD primitive from the given keyset handle.
func New(handle *tink.KeysetHandle) (tink.DeterministicAEAD, error) {
return newWithKeyManager(handle, nil /*keyManager*/)
return NewWithKeyManager(handle, nil /*keyManager*/)
}
// newWithKeyManager returns a DeterministicAEAD primitive from the given keyset handle and custom key manager.
func newWithKeyManager(kh *tink.KeysetHandle, km tink.KeyManager) (tink.DeterministicAEAD, error) {
// NewWithKeyManager returns a DeterministicAEAD primitive from the given keyset handle and custom key manager.
func NewWithKeyManager(kh *tink.KeysetHandle, km tink.KeyManager) (tink.DeterministicAEAD, error) {
ps, err := tink.PrimitivesWithKeyManager(kh, km)
if err != nil {
return nil, fmt.Errorf("daead_factory: cannot obtain primitive set: %s", err)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment