-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ml-dsa key type and stubs (#28961)
* add ml-dsa key type and stubs * add in sdk changes * ent breakout * fix private key func and run go mod tidy * change function name * tidy go.mod --------- Co-authored-by: Scott G. Miller <[email protected]>
- Loading branch information
1 parent
1a15c4b
commit a0ceaf6
Showing
9 changed files
with
128 additions
and
31 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
// Copyright (c) HashiCorp, Inc. | ||
// SPDX-License-Identifier: MPL-2.0 | ||
|
||
//go:build !enterprise | ||
|
||
package keysutil | ||
|
||
import ( | ||
"fmt" | ||
"io" | ||
|
||
"github.com/hashicorp/vault/sdk/helper/errutil" | ||
) | ||
|
||
type entKeyEntry struct{} | ||
|
||
func (e entKeyEntry) IsEntPrivateKeyMissing() bool { | ||
return true | ||
} | ||
|
||
func entSignWithOptions(p *Policy, input []byte, ver int, options *SigningOptions) ([]byte, error) { | ||
return nil, fmt.Errorf("unsupported key type %v", p.Type) | ||
} | ||
|
||
func entVerifySignatureWithOptions(p *Policy, input []byte, sigBytes []byte, ver int, options *SigningOptions) (bool, error) { | ||
return false, errutil.InternalError{Err: fmt.Sprintf("unsupported key type %v", p.Type)} | ||
} | ||
|
||
func entRotateInMemory(p *Policy, entry *KeyEntry, rand io.Reader) error { | ||
return fmt.Errorf("unsupported key type %v", p.Type) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters