keywrap

package
v0.10.1-alpha.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 license.

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 license.

Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the Apache v2.0 license.

Index

Constants

View Source
const AIVHighStr = "A65959A6"

The 4 most signifigant bytes of the AIV

View Source
const IV = "A6A6A6A6A6A6A6A6"

Variables

This section is empty.

Functions

func Unwrap

func Unwrap(K []byte, C []byte) ([]byte, error)

Unwrap unwraps C with K using AES Key Wrap, according to rfc3394

func UnwrapPadded

func UnwrapPadded(K []byte, C []byte) ([]byte, error)

UnwrapPadded unwraps C with K using AES Key Wrap with padding, according to rfc5649

func Wrap

func Wrap(K []byte, P []byte) ([]byte, error)

Wrap wraps P with K using AES Key Wrap, according to rfc3394

func WrapPadded

func WrapPadded(K []byte, P []byte) ([]byte, error)

WrapPadded wraps P with K using AES Key Wrap with padding, according to rfc5649

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL