|
|
@ -63,7 +63,7 @@ func (c *Config) GetReadBufferSize() uint32 {
|
|
|
|
// GetSecurity returns the security settings.
|
|
|
|
// GetSecurity returns the security settings.
|
|
|
|
func (c *Config) GetSecurity() (cipher.AEAD, error) {
|
|
|
|
func (c *Config) GetSecurity() (cipher.AEAD, error) {
|
|
|
|
if c.Seed != nil {
|
|
|
|
if c.Seed != nil {
|
|
|
|
fmt.Println("NewAEADAESGCMBasedOnSeed Used")
|
|
|
|
fmt.Println("=========NewAEADAESGCMBasedOnSeed Used============")
|
|
|
|
return NewAEADAESGCMBasedOnSeed(c.Seed.Seed), nil
|
|
|
|
return NewAEADAESGCMBasedOnSeed(c.Seed.Seed), nil
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return NewSimpleAuthenticator(), nil
|
|
|
|
return NewSimpleAuthenticator(), nil
|
|
|
|