github.com/blend/go-sdk@v1.20220411.3/crypto/constants.go (about) 1 /* 2 3 Copyright (c) 2022 - Present. Blend Labs, Inc. All rights reserved 4 Use of this source code is governed by a MIT license that can be found in the LICENSE file. 5 6 */ 7 8 package crypto 9 10 import "crypto/aes" 11 12 // Important constants. 13 const ( 14 // DefaultKeySize is the size of keys to generate for client use. 15 DefaultKeySize = 32 16 // KeyVersionSize is the size of the key version prefix. 17 KeyVersionSize = (4 + 2 + 2 + 1) // YYYY + MM + DD + : 18 // IVSize is the size of the IV prefix. 19 IVSize = aes.BlockSize 20 // HashSize is the size of the hash prefix. 21 HashSize = 32 // reasons. 22 )