Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- parseHmacKey :: Text -> Int64 -> Either Text JWK
- parseRsaKey :: Text -> Either Text JWK
- parseEdDSAKey :: Text -> Either Text JWK
- fromRawPem :: ByteString -> Either Text JWK
- fromPkcsPem :: ByteString -> Either Text PubKey
- fromX509Pem :: ByteString -> Either Text PubKey
- pubKeyToJwk :: PubKey -> Either Text JWK
- getAtleastOne :: Text -> [a] -> Either Text a
- calculateSize :: Integer -> Int
Documentation
parseHmacKey :: Text -> Int64 -> Either Text JWK Source #
Helper functions to decode Text to JWK
parseRsaKey :: Text -> Either Text JWK Source #
parseEdDSAKey :: Text -> Either Text JWK Source #
fromRawPem :: ByteString -> Either Text JWK Source #
Helper functions to decode PEM bytestring to RSA public key
fromPkcsPem :: ByteString -> Either Text PubKey Source #
fromX509Pem :: ByteString -> Either Text PubKey Source #
pubKeyToJwk :: PubKey -> Either Text JWK Source #
getAtleastOne :: Text -> [a] -> Either Text a Source #
calculateSize :: Integer -> Int Source #