Package tlslite :: Module constants :: Class SignatureScheme
[hide private]
[frames] | no frames]

type SignatureScheme

source code


Signature scheme used for signalling supported signature algorithms.

This is the replacement for the HashAlgorithm and SignatureAlgorithm lists. Introduced with TLSv1.3.

Class Methods [hide private]
 
toRepr(cls, value, blacklist=None)
Convert numeric type to name representation
source code

Inherited from TLSEnum: toStr

Inherited from TLSEnum (private): _recursiveVars

Static Methods [hide private]
 
getHash(scheme)
Return the name of hash used in signature scheme.
source code
 
getKeyType(scheme)
Return the name of the signature algorithm used in scheme.
source code
 
getPadding(scheme)
Return the name of padding scheme used in signature scheme.
source code
Class Variables [hide private]
  rsa_pkcs1_sha1 = (2, 1)
  rsa_pkcs1_sha256 = (4, 1)
  rsa_pkcs1_sha384 = (5, 1)
  rsa_pkcs1_sha512 = (6, 1)
  rsa_pss_sha256 = (8, 4)
  rsa_pss_sha384 = (8, 5)
  rsa_pss_sha512 = (8, 6)
Method Details [hide private]

getKeyType(scheme)
Static Method

source code 

Return the name of the signature algorithm used in scheme.

E.g. for "rsa_pkcs1_sha1" it returns "rsa"

toRepr(cls, value, blacklist=None)
Class Method

source code 

Convert numeric type to name representation

Overrides: TLSEnum.toRepr