From 35c43501ff0ea77c4f3823af133912d6b9cae075 Mon Sep 17 00:00:00 2001 From: Dave Grijalva Date: Tue, 26 Aug 2014 15:30:37 -0700 Subject: [PATCH] documentation --- hmac.go | 2 ++ rsa.go | 2 ++ 2 files changed, 4 insertions(+) diff --git a/hmac.go b/hmac.go index a8450d3..e76e45d 100644 --- a/hmac.go +++ b/hmac.go @@ -7,11 +7,13 @@ import ( "errors" ) +// Implements the HMAC-SHA family of signing methods signing methods type SigningMethodHMAC struct { Name string Hash crypto.Hash } +// Specific instances for HS256 and company var ( SigningMethodHS256 *SigningMethodHMAC SigningMethodHS384 *SigningMethodHMAC diff --git a/rsa.go b/rsa.go index 495e5c9..cddffce 100644 --- a/rsa.go +++ b/rsa.go @@ -6,11 +6,13 @@ import ( "crypto/rsa" ) +// Implements the RSA family of signing methods signing methods type SigningMethodRSA struct { Name string Hash crypto.Hash } +// Specific instances for RS256 and company var ( SigningMethodRS256 *SigningMethodRSA SigningMethodRS384 *SigningMethodRSA