aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ramips/dts/XDXRN502J.dts
Commit message (Expand)AuthorAgeFilesLines
* ramips: ethernet mac cleanupJohn Crispin2014-07-261-0/+4
* ramips: soc wmac eeprom cleanupJohn Crispin2014-07-171-0/+4
* ramips: fixes XDXRN502J reset buttonJohn Crispin2014-06-161-1/+1
* ralink: add pinctrl driverJohn Crispin2013-09-171-19/+6
* [ramips] move memory detect node to dtsi filesJohn Crispin2013-04-091-4/+0
* [ramips] remove bootargs from dtsJohn Crispin2013-04-091-4/+0
* [ramips] add ofpart info to the devicetreesJohn Crispin2013-04-091-0/+23
* ramips: remove top-level {address,size}-cells properties from .dts filesGabor Juhos2013-04-071-2/+0
* [ramips] fix typo pinmmux -> pinmuxJohn Crispin2013-04-061-1/+1
* [ramips] fix typo that made gpiomuxing failJohn Crispin2013-04-051-1/+1
* [ramips] add the dts files that describe the boards in futureJohn Crispin2013-04-031-0/+82
.Number.Oct */ .highlight .sa { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Affix */ .highlight .sb { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Backtick */ .highlight .sc { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Char */ .highlight .dl { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Delimiter */ .highlight .sd { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Doc */ .highlight .s2 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Double */ .highlight .se { color: #0044dd; background-color: #fff0f0 } /* Literal.String.Escape */ .highlight .sh { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Heredoc */ .highlight .si { color: #3333bb; background-color: #fff0f0 } /* Literal.String.Interpol */ .highlight .sx { color: #22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#    http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
# implied.
# See the License for the specific language governing permissions and
# limitations under the License.

from __future__ import absolute_import, division, print_function

import os

import pytest

from cryptography.hazmat.primitives import hashes

from .utils import generate_hkdf_test
from ...utils import load_nist_vectors


@pytest.mark.supported(
    only_if=lambda backend: backend.hmac_supported(hashes.SHA1()),
    skip_message="Does not support SHA1."
)
@pytest.mark.hmac
class TestHKDFSHA1(object):
    test_HKDFSHA1 = generate_hkdf_test(
        load_nist_vectors,
        os.path.join("KDF"),
        ["rfc-5869-HKDF-SHA1.txt"],
        hashes.SHA1()
    )


@pytest.mark.supported(
    only_if=lambda backend: backend.hmac_supported(hashes.SHA256()),
    skip_message="Does not support SHA256."
)
@pytest.mark.hmac
class TestHKDFSHA256(object):
    test_HKDFSHA1 = generate_hkdf_test(
        load_nist_vectors,
        os.path.join("KDF"),
        ["rfc-5869-HKDF-SHA256.txt"],
        hashes.SHA256()
    )