예제 #1
0
def test_parse_rsa_algorithm_ps384():
    (hash, padding) = parse_rsa_algorithm("PS384")
    assert hash
    assert hash.name == "sha384"
    assert padding.name == "EMSA-PSS"
예제 #2
0
def test_parse_rsa_algorithm_rs512():
    (hash, padding) = parse_rsa_algorithm("RS512")
    assert hash.name == "sha512"
    assert padding.name == "EMSA-PKCS1-v1_5"
예제 #3
0
def test_parse_rsa_algorithm_ps256():
    (hash, padding) = parse_rsa_algorithm("PS256")
    assert hash.name == "sha256"
    assert padding.name == "EMSA-PSS"
예제 #4
0
def test_parse_rsa_algorithm_rs256():
    (hash, padding) = parse_rsa_algorithm("RS256")
    assert hash.name == "sha256"
    assert padding.name == "EMSA-PKCS1-v1_5"
예제 #5
0
def test_parse_rsa_algorithm_rs384():
    (hash, padding) = parse_rsa_algorithm("RS384")
    assert hash.name == "sha384"
    assert padding.name == "EMSA-PKCS1-v1_5"
예제 #6
0
def test_parse_rsa_algorithm_ps384():
    (hash, padding) = parse_rsa_algorithm('PS384')
    assert hash
    assert hash.name == 'sha384'
    assert padding.name == 'EMSA-PSS'
예제 #7
0
def test_parse_rsa_algorithm_ps512():
    (hash, padding) = parse_rsa_algorithm('PS512')
    assert hash
    assert hash.name == 'sha512'
    assert padding.name == 'EMSA-PSS'
예제 #8
0
def test_parse_rsa_algorithm_ps256():
    (hash, padding) = parse_rsa_algorithm('PS256')
    assert hash.name == 'sha256'
    assert padding.name == 'EMSA-PSS'
예제 #9
0
def test_parse_rsa_algorithm_rs512():
    (hash, padding) = parse_rsa_algorithm('RS512')
    assert hash.name == 'sha512'
    assert padding.name == 'EMSA-PKCS1-v1_5'
예제 #10
0
def test_parse_rsa_algorithm_rs384():
    (hash, padding) = parse_rsa_algorithm('RS384')
    assert hash.name == 'sha384'
    assert padding.name == 'EMSA-PKCS1-v1_5'
예제 #11
0
def test_parse_rsa_algorithm_rs256():
    (hash, padding) = parse_rsa_algorithm('RS256')
    assert hash.name == 'sha256'
    assert padding.name == 'EMSA-PKCS1-v1_5'
예제 #12
0
def test_parse_rsa_algorithm_ps512():
    (hash, padding) = parse_rsa_algorithm("PS512")
    assert hash
    assert hash.name == "sha512"
    assert padding.name == "EMSA-PSS"