Skip to content
/ oae Public

An implementation of Online Authenticated Encryption construction.

License

Notifications You must be signed in to change notification settings

ermites-io/oae

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Documentation License

oae

a STREAM & CHAIN Contruction Online Authenticated Encryption package

Description

Online Authenticate Encryption and its nonce reuse misuse resistance

standard library based package to provide "online" authenticated encryption reader / writer facilities using STREAM & CHAIN construction using any cipher.AEAD.

How to use

This is WORK IN PROGRESS... reliable code should come shortly as we need it.

The API is still being worked, especially with AD.

STREAM is in, CHAIN is starting.

import (
	"github.com/ermites-io/oae/stream"
	"github.com/ermites-io/oae/chain"
)

func main() {
..
	// STREAM construction
	stw, err := stream.NewWriter(w, aead, nonce, ad, 32768) // you get an io.Writer
	str, err := stream.NewReader(r, aead, nonce, ad, 32768) // you get an io.Reader

	// CHAIN construction

About

An implementation of Online Authenticated Encryption construction.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages