MCPcopy Create free account
hub / github.com/crewjam/saml / Algorithm

Method Algorithm

xmlenc/gcm.go:28–30  ·  view source on GitHub ↗

Algorithm returns the name of the algorithm, as will be found in an xenc:EncryptionMethod element.

()

Source from the content-addressed store, hash-verified

26// Algorithm returns the name of the algorithm, as will be found
27// in an xenc:EncryptionMethod element.
28func (e GCM) Algorithm() string {
29 return e.algorithm
30}
31
32// Encrypt encrypts plaintext with key and nonce
33func (e GCM) Encrypt(key interface{}, plaintext []byte, nonce []byte) (*etree.Element, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected