Files
postmoogle/vendor/maunium.net/go/mautrix/crypto/olm/verification_goolm.go
2024-02-11 20:47:04 +02:00

24 lines
340 B
Go

//go:build !nosas && goolm
package olm
import (
"maunium.net/go/mautrix/crypto/goolm/sas"
)
// SAS stores an Olm Short Authentication String (SAS) object.
type SAS struct {
sas.SAS
}
// NewSAS creates a new SAS object.
func NewSAS() *SAS {
newSAS, err := sas.New()
if err != nil {
panic(err)
}
return &SAS{
SAS: *newSAS,
}
}