MCPcopy Index your code
hub / github.com/celzero/firestack / emsaPSSEncode

Function emsaPSSEncode

intra/core/brsa/pss.go:48–121  ·  view source on GitHub ↗

Per RFC 8017, Section 9.1 EM = MGF1 xor DB || H( 8*0x00 || mHash || salt ) || 0xbc where DB = PS || 0x01 || salt and PS can be empty so emLen = dbLen + hLen + 1 = psLen + sLen + hLen + 2

(mHash []byte, emBits int, salt []byte, hash hash.Hash)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

EncodeMessageEMSAPSSFunction · 0.85

Calls 4

mgf1XORFunction · 0.85
WriteMethod · 0.65
SizeMethod · 0.45
ResetMethod · 0.45

Tested by

no test coverage detected