MCPcopy Create free account
hub / github.com/facebook/time / TestAEADAlgorithmValues

Function TestAEADAlgorithmValues

ntp/protocol/extension_fields_test.go:241–244  ·  view source on GitHub ↗

TestAEADAlgorithmValues pins the negotiated AEAD identifiers to their IANA "AEAD Algorithms" registry values; drift here would silently break NTS-KE interop with peers.

(t *testing.T)

Source from the content-addressed store, hash-verified

239// "AEAD Algorithms" registry values; drift here would silently break NTS-KE
240// interop with peers.
241func TestAEADAlgorithmValues(t *testing.T) {
242 require.Equal(t, AEADAlgorithm(15), AEADAESSIVCMAC256)
243 require.Equal(t, AEADAlgorithm(17), AEADAESSIVCMAC512)
244 require.Equal(t, AEADAlgorithm(30), AEADAES128GCMSIV)
245}
246
247// FuzzEFRoundTrip locks the parse/encode mutual-inverse that NTS request auth

Callers

nothing calls this directly

Calls 1

AEADAlgorithmTypeAlias · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…