-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This helps clean things up slightly, and also makes the tests slightly more readily readable for users looking at them as examples.
- Loading branch information
1 parent
41dc809
commit a215f71
Showing
4 changed files
with
163 additions
and
123 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package paseto | ||
|
||
// This file is only compiled during tests due to the _test suffix. It serves | ||
// the purpose of exporting some internal functions, which are used in | ||
// paseto_test. | ||
|
||
type Packet = packet | ||
|
||
var NewMessage = newMessage | ||
var NewPacket = newPacket | ||
|
||
var V2LocalDecrypt = v2LocalDecrypt | ||
var V2LocalEncrypt = v2LocalEncrypt | ||
var V2PublicVerify = v2PublicVerify | ||
var V2PublicSign = v2PublicSign | ||
|
||
var V3LocalDecrypt = v3LocalDecrypt | ||
var V3LocalEncrypt = v3LocalEncrypt | ||
var V3PublicVerify = v3PublicVerify | ||
var V3PublicSign = v3PublicSign | ||
|
||
var V4LocalDecrypt = v4LocalDecrypt | ||
var V4LocalEncrypt = v4LocalEncrypt | ||
var V4PublicVerify = v4PublicVerify | ||
var V4PublicSign = v4PublicSign | ||
|
||
func (m message) Encoded() string { | ||
return m.encoded() | ||
} | ||
|
||
func (p packet) Content() []byte { | ||
return p.content | ||
} | ||
|
||
func (p packet) Footer() []byte { | ||
return p.footer | ||
} |
Oops, something went wrong.