I’m trying to add the length
directive to the type tailf:aes-cfb-128-encrypted-string
.
Seems like the leaf ignores the length.
leaf key {
type tailf:aes-cfb-128-encrypted-string {
length "8..12";
}
}
When I commit a string with a length lower than 8, the commit suceeds.
I saw this in the man 3 confd_types
:
tailf:aes-cfb-128-encrypted-string
The aes-cfb-128-encrypted-string works exactly like des3-cbc-encrypted-string but AES/128bits in CFB mode is used to encrypt the string. The prefix for encrypted values is "$8$".
Note
The pattern restriction can not be used with this type.
There’s nothing written about the length
restriction.
Am I doing something wrong?
Thanks.