bodyhash

package
v0.0.16 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 30, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BodyHash

type BodyHash struct {
	// contains filtered or unexported fields
}

func NewBodyHash

func NewBodyHash(canon canonical.Canonicalization, hashAlgo crypto.Hash, limit int64) *BodyHash

Canonicalizationとハッシュアルゴリズムを指定してBodyHasherを生成する

func (*BodyHash) Close

func (b *BodyHash) Close() error

メール本文の書き込みを終了する

func (*BodyHash) Get

func (b *BodyHash) Get() string

ハッシュ値を取得する 取得前にClose()を呼ぶこと

func (*BodyHash) Write

func (b *BodyHash) Write(p []byte) (n int, err error)

メール本文の書き込みを行う ハッシュ値を計算する

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL