Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ load jwt, check for kid, then verify it with the correct key

sign a table_of_jwt to a jwt_token.

The `alg` argument specifies which hashing algorithm to use for encrypting key (`dir`, `RSA-OAEP-256`).
The `alg` argument specifies which hashing algorithm to use for encrypting key (`dir`, `RSA-OAEP-256`, `ECDH-ES`).
The `enc` argument specifies which hashing algorithm to use for encrypting payload (`A128CBC-HS256`, `A256CBC-HS512`)

### sample of table_of_jwt ###
Expand Down
2 changes: 2 additions & 0 deletions lib/resty/evp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@ local ffi_new = ffi.new
local ffi_string = ffi.string
local ffi_cast = ffi.cast
local _C = ffi.C
local version = require "resty.openssl.version"

local _M = { _VERSION = "0.2.3" }

local ngx = ngx

ngx.log(ngx.DEBUG, "openssl version = ", version.version(version.VERSION))

local CONST = {
SHA256_DIGEST = "SHA256",
Expand Down
Loading