Documentation ¶
Overview ¶
Copyright 2017 Google Inc.
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.
Index ¶
Constants ¶
View Source
const ( PaddingPKCS7 = Padding("PKCS7Padding") PaddingPKCS5 = Padding("PKCS5Padding") )
View Source
const (
ModeEcb = Mode("ECB")
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AesCipher ¶
type AesCipher struct {
// contains filtered or unexported fields
}
An object to perform AES encryption/decryption.
func CreateAesCipher ¶
Create a new AesCipher object with the specified encryption mode and padding algorithm.
type ErrModeUnsupported ¶
type ErrModeUnsupported struct {
// contains filtered or unexported fields
}
func (*ErrModeUnsupported) Error ¶
func (e *ErrModeUnsupported) Error() string
type ErrPaddingUnsupported ¶
type ErrPaddingUnsupported struct {
// contains filtered or unexported fields
}
func (*ErrPaddingUnsupported) Error ¶
func (e *ErrPaddingUnsupported) Error() string
Click to show internal directories.
Click to hide internal directories.