forked from matthewstevenson88/grpc-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move and rename packages (matthewstevenson88#41)
- Loading branch information
Showing
23 changed files
with
263 additions
and
248 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
14 changes: 14 additions & 0 deletions
14
security/s2a/internal/record/internal/aeadcrypter/aeadcrypter.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package aeadcrypter | ||
|
||
// S2AAEADCrypter is the interface for an AEAD cipher used by the S2A record | ||
// protocol. | ||
type S2AAEADCrypter interface { | ||
// Encrypt encrypts the plaintext and computes the tag of dst and plaintext. | ||
// dst and plaintext may fully overlap or not at all. | ||
Encrypt(dst, plaintext, nonce, aad []byte) ([]byte, error) | ||
// Decrypt decrypts ciphertext and verifies the tag. dst and ciphertext may | ||
// fully overlap or not at all. | ||
Decrypt(dst, ciphertext, nonce, aad []byte) ([]byte, error) | ||
// TagSize returns the tag size in bytes. | ||
TagSize() int | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.