Skip to content
Snippets Groups Projects
Select Git revision
  • 73c74dd27ec1c58f5d05fd57bb9b6b395d85f931
  • master default protected
  • renovate/google.golang.org-grpc-1.x
  • renovate/google.golang.org-protobuf-1.x
  • renovate/google.golang.org-genproto-googleapis-api-digest
  • renovate/golang.org-x-sys-0.x
  • enhance-ping-utility
  • renovate/rabbitmq-4.x
  • renovate/mongo-8.x
  • renovate/golangci-golangci-lint-2.x
  • renovate/github.com-openconfig-goyang-1.x
  • renovate/github.com-oapi-codegen-runtime-1.x
  • renovate/code.fbi.h-da.de-danet-gnmi-target-digest
  • 54-ecoc-infrastructure-setup
  • kai_masterthesis
  • martin-quipsec
  • request-health-checks-for-peers
  • 44-block-incoming-keys-if-exceeding-max-key-fill-level
  • add-inventory-manager
  • extend-intercom-with-aes-auth-tag
  • debug-ci
  • tud-testing-1
22 results

crypto.go

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    crypto.go 430 B
    package crypto
    
    // CryptoAlgorithm is an interface that provides the methods required for
    // encryption and decryption of data.
    // Currently only AES is supported, but this could be extended to support other
    // algorithms in the future.
    type CryptoAlgorithm interface {
    	Encrypt(plaintext []byte, key []byte) ([]byte, []byte, []byte, error)
    	Decrypt(nonce, authTag, ciphertext []byte, key []byte) ([]byte, error)
    	Name() string
    }