1# This file is being contributed to pyasn1-modules software. 2# 3# Created by Russ Housley. 4# 5# Copyright (c) 2019, Vigil Security, LLC 6# License: http://snmplabs.com/pyasn1/license.html 7# 8# Algorithm Identifiers for Ed25519, Ed448, X25519, and X448 9# 10# ASN.1 source from: 11# https://www.rfc-editor.org/rfc/rfc8410.txt 12 13from pyasn1.type import univ 14from pyasn1_modules import rfc3565 15from pyasn1_modules import rfc4055 16from pyasn1_modules import rfc5280 17 18 19class SignatureAlgorithmIdentifier(rfc5280.AlgorithmIdentifier): 20 pass 21 22 23class KeyEncryptionAlgorithmIdentifier(rfc5280.AlgorithmIdentifier): 24 pass 25 26 27class CurvePrivateKey(univ.OctetString): 28 pass 29 30 31id_X25519 = univ.ObjectIdentifier('1.3.101.110') 32 33id_X448 = univ.ObjectIdentifier('1.3.101.111') 34 35id_Ed25519 = univ.ObjectIdentifier('1.3.101.112') 36 37id_Ed448 = univ.ObjectIdentifier('1.3.101.113') 38 39id_sha512 = rfc4055.id_sha512 40 41id_aes128_wrap = rfc3565.id_aes128_wrap 42 43id_aes256_wrap = rfc3565.id_aes256_wrap 44