def test_parse_rsa_algorithm_ps384(): (hash, padding) = parse_rsa_algorithm("PS384") assert hash assert hash.name == "sha384" assert padding.name == "EMSA-PSS"
def test_parse_rsa_algorithm_rs512(): (hash, padding) = parse_rsa_algorithm("RS512") assert hash.name == "sha512" assert padding.name == "EMSA-PKCS1-v1_5"
def test_parse_rsa_algorithm_ps256(): (hash, padding) = parse_rsa_algorithm("PS256") assert hash.name == "sha256" assert padding.name == "EMSA-PSS"
def test_parse_rsa_algorithm_rs256(): (hash, padding) = parse_rsa_algorithm("RS256") assert hash.name == "sha256" assert padding.name == "EMSA-PKCS1-v1_5"
def test_parse_rsa_algorithm_rs384(): (hash, padding) = parse_rsa_algorithm("RS384") assert hash.name == "sha384" assert padding.name == "EMSA-PKCS1-v1_5"
def test_parse_rsa_algorithm_ps384(): (hash, padding) = parse_rsa_algorithm('PS384') assert hash assert hash.name == 'sha384' assert padding.name == 'EMSA-PSS'
def test_parse_rsa_algorithm_ps512(): (hash, padding) = parse_rsa_algorithm('PS512') assert hash assert hash.name == 'sha512' assert padding.name == 'EMSA-PSS'
def test_parse_rsa_algorithm_ps256(): (hash, padding) = parse_rsa_algorithm('PS256') assert hash.name == 'sha256' assert padding.name == 'EMSA-PSS'
def test_parse_rsa_algorithm_rs512(): (hash, padding) = parse_rsa_algorithm('RS512') assert hash.name == 'sha512' assert padding.name == 'EMSA-PKCS1-v1_5'
def test_parse_rsa_algorithm_rs384(): (hash, padding) = parse_rsa_algorithm('RS384') assert hash.name == 'sha384' assert padding.name == 'EMSA-PKCS1-v1_5'
def test_parse_rsa_algorithm_rs256(): (hash, padding) = parse_rsa_algorithm('RS256') assert hash.name == 'sha256' assert padding.name == 'EMSA-PKCS1-v1_5'
def test_parse_rsa_algorithm_ps512(): (hash, padding) = parse_rsa_algorithm("PS512") assert hash assert hash.name == "sha512" assert padding.name == "EMSA-PSS"