Coverage for /pythoncovmergedfiles/medio/medio/usr/local/lib/python3.11/site-packages/cryptography/hazmat/primitives/keywrap.py: 90%

Shortcuts on this page

r m x   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

10 statements  

1# This file is dual licensed under the terms of the Apache License, Version 

2# 2.0, and the BSD License. See the LICENSE file in the root of this repository 

3# for complete details. 

4 

5from __future__ import annotations 

6 

7from cryptography.hazmat.bindings._rust import openssl as rust_openssl 

8 

9__all__ = [ 

10 "InvalidUnwrap", 

11 "aes_key_unwrap", 

12 "aes_key_unwrap_with_padding", 

13 "aes_key_wrap", 

14 "aes_key_wrap_with_padding", 

15] 

16 

17 

18class InvalidUnwrap(Exception): 

19 pass 

20 

21 

22aes_key_wrap = rust_openssl.keywrap.aes_key_wrap 

23aes_key_unwrap = rust_openssl.keywrap.aes_key_unwrap 

24aes_key_wrap_with_padding = rust_openssl.keywrap.aes_key_wrap_with_padding 

25aes_key_unwrap_with_padding = rust_openssl.keywrap.aes_key_unwrap_with_padding